This project was generated with Angular CLI version 8.1.1.
- Install node.js
- Run
npm install -g @angular/cli
to install [Angular CLI]
Run npm install
in the repo folder to install all angular dependency.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Build the website with prod settings using the following command: ng build --prod --base-href "https://fastestimator.org/"
.
Once build is done, use ngh
to automatically push to gh-pages branch. Then create a pull request to deploy to prod.
- install google cloud cli
- run
gcloud init
to initialize gcloud project and login - gcloud app deploy
- to logout
gcloud auth revoke
- to login
gcloud auth login
- to unset project
gcloud config unset project
- to set project
gcloud config set project <project ID>
- run build by
npm run build:ssr
- compress
dist
folder andpackage.json
into a zip file - upload the zip file to EBS.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.