Quickstart
A quick dive into getting started with Lore
A quick dive into getting started with Lore
To create a new application, type lore new
into the command line followed by the name of your application. For this example we are going to call our application lore-quickstart
.
$ lore new lore-quickstart
$ lore new lore-quickstart --es6
$ lore new lore-quickstart --esnext
This will create a new directory called lore-quickstart
, and place all the application files inside. You should see this message when the task completes.
info: Created a new Lore application 'lore-quickstart'
When you create an application, your language preference is recorded in the
.lorerc
file at the root of the project, and the CLI will inspect this file before executing commands.That means this is the only time you'll need to declare the JavaScript version, as any files you generate from this point forward will be created using your preference automatically.
You can learn more about the
.lorerc
file here.
Once the project is created, navigate into the project directory and install the dependencies.
$ cd lore-quickstart
$ npm install
Depending on your network connection, it may take a few minutes for this step to complete.
Now that we've created our project and installed the dependencies, let's build the application.