install angular-cli:
npm install -g @angular/cli
install typings:
npm install -g typings
install typescript:
npm install -g typescript
in git bash (or other terminal):
git clone git@github.com:simubank/project5-asteroids.git
change to Development branch:
git checkout development
navigate to td-generic-group-project/ folder
install dependencies:
npm install
run the website:
npm start
Navigate to http://localhost:4200/.
The app will automatically reload if you change any of the source files.
ng build --prod
npm install -g firebase-tools
firebase login (Try with --interactive if it doesn't work)
firebase serve
Navigate to http://localhost:5000
firebase init
- Select yes to proceed
- Select Hosting only
- Select the project
- Install dependencies (once)
- Choose "dist" folder
- Choose yes to configure as a single-page app
- Choose no to not overwrite the index.html
firebase deploy
connect to https://td-generic-group-project.firebaseapp.com
Tutorial for angular cli + angularfire + firebase: https://medium.com/codingthesmartway-com-blog/building-an-angular-5-project-with-bootstrap-4-and-firebase-4504ff7717c1
Tutorial for deploying from angular cli to firebase : https://coryrylan.com/blog/deploy-angular-cli-apps-to-firebase