Follow the instructions below to install, build, and run the Aura App locally in less than 15 minutes.
- Fork repository and clone it locally
- Setup Environment
- Install Node.js (v8.9.4 or above)
- Install project dependencies:
npm install
- Replace the
urlname
Field (CHAPTER_URL_NAME
) here - Compiles and hot-reloads for development:
npm run serve
- Update
Meta Tag
,Title Tag
and Google Analytics Code from Basic Info, manifest.json and Resources - For the production:
npm run build
and then one dir will be createddist
- For testing:
npm run test
- Setup Environment for the Firebase deployment
- Install Firebase CLI:
npm i -g firebase-tools
oryarn global add firebase-tools
- Install Firebase CLI:
- Create Firebase account and login into Firebase CLI:
firebase login
- Open Terminal/CMD/Powershell in your dir.
- Now type
firebase login
command in your Terminal/CMD/Powershell. - Type
firebase init
. - Select the project by using the arrow keys.
- Then Select the
Firebase Hosting
by using Spacebar and arrow key. - Click
No
for Single page web app. - Type
dist
. - Some by default file will be created successfully.
- Run locally
firebase serve
ornpm run serve
- Build and deploy
firebase deploy
The diagram below is a brief summary of the directories within the project.
/
|---.firebase/
|---dist/
|---docs/
|---public/
|---node_modules/
|---src/
| |---assets/
| |---components/
| |---config/
| |---filters/
| |---plugins/
| |---views/
|
.firebase/
Firebase deployment related temporary filedist/
is the directory to deploy to production.public/
folder with allindex.html
,img
,Favicon Icon
,manifest.json
data for the template.docs/
documentation.node_modules/
is the place of Node dependencies.src/
is where you store all of your source code and do all of your development.
- Run locally
cd
into the base directorynpm install
npm run serve
- Build for the Production
npm run build
- Deploy for Firebase
firebase deploy
oryarn deploy
Now that your Aura App is up and running, learn how to configure app for your needs, or how to deploy the app to the web.