ROAR App Installation¶
Use the create-roar-app template to create your app
Installation¶
To create a new app, first navigate to the directory in which you want to store all of your ROAR assessments. For example
You may then choose one of the following methods:
Installation options
npx is a package runner tool that comes with npm 5.2+ and higher.
yarn create <starter-kit-package>
is available in Yarn 0.25+
Follow the on-screen prompts and answer questions about your application. Here's an example:
This will create a directory called my-roar-app
inside the current folder.
Inside that directory, it will generate the initial project structure and install some dependencies. Once the installation is done, you can navigate to your project folder:
and make edits to your experiment's code. See the following pages for more detail:
Available commands¶
Inside the newly created project, you can run some built-in commands:
Start a development server
Runs the app in development mode.
Visit http://localhost:8080 to view it in the browser.
The page will automatically reload if you make changes to the code.
We recommend using the Google Chrome browser for your web development. Use the Chrome DevTools to view your web application's DOM or debug your JavaScript.
To stop the development server in your console, press Ctrl+C.
Build your app for deployment
Builds the app for production to the dist
folder.
This correctly bundles your ROAR app in production mode and optimizes the build for the best performance.
Your app is then ready to be deployed.
There are other commands as well. The difference between npm run build:dev
and npm run build:prod
, for example, is explained in the Configuration section.
Make your first commit¶
Before we start configuring your app, let's commit the files that the create-roar-app
initializer created in your app directory.
Now that you've committed the initial files, let's explore the folder we've created and start writing your experiment.