This project was generated with angular-cli version 1.0.0-beta.25.5.
A started project using Angular-CLI, and Firebase Auth, Database and Hosting.
- Already set up for dev and production environments
- Already set up to use all 5 auth providers from Firebase
- Already set up to use Custom Email Action Handler (currently only Reset Password is completed, Recover Password and Verify Email are in progress)
- Uses ng2-bootstrap for Nav Bar
- Should be mostly styleguide-compliant
- Install Firebase CLI - for deploying to Firebase Hosting (optional)
npm install -g firebase-tools
- Set up two firebase projects - one for dev, the other for production.
- In the Firebase Console, enable any authentication providers you wish to use, providing the necessary API Key/Secret info. Do this for both projects. Use the Redirect URL
https://YOUR_PROJECT_ID.firebaseapp.com/emailAction
when registering your application with each provider.
- In the Firebase Console, enable any authentication providers you wish to use, providing the necessary API Key/Secret info. Do this for both projects. Use the Redirect URL
- Clone Project from Git
- Find and replace:
YOUR_PROJECT_ID
- your production project ID (https://PROJECT_ID.firebaseapp.com)YOUR_API_KEY
- the API key from your production projectYOUR_MESSAGE_ID
- the Message Sender Id from your production projectYOUR_DEV_PROJECT_ID
- your dev project ID.YOUR_DEV_API_KEY
- the API key from your dev projectYOUR_DEV_MESSAGE_ID
- the Message Sender Id from your dev project
- To add more environments, check out the following files:
- /app/environments/env.conditions.ts
- /app/main.ts
npm install
to install dependenciesnpm run start
to run your projectnpm run dev-build-and-deploy
to build as development and push to your dev Firebase Hostingnpm run prod-build-and-deploy
to build as production and push to your production Firebase Hosting
Please take a moment and read our Code of Conduct
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/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.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via ng serve
.
Run ng github-pages:deploy
to deploy to GitHub Pages.
To get more help on the angular-cli
use ng help
or go check out the Angular-CLI README.