FireStarter is an Angular PWA powered by Firebase. It can serve as a foundation to learn this stack and roll out more complex features.
- Angular 6.x
- 100 PWA Lighthouse Score with NGSW
- Firebase Auth, Storage, and Cloud Firestore Demos
- Angular Universal Prerendered SSR (deployed to Firebase Static Hosting)
- End-to-End Testing with Cypress.io
- Continuous Integration with CircleCI
- Run
git clone https://github.com/codediodeio/angular-firestarter.git firestarter
cd firestarter
npm install
- Create a project at https://firebase.google.com/ and grab your web config:
- Add the config to your Angular environment
export const environment = {
production: false,
firebase: {
apiKey: 'APIKEY',
authDomain: 'DEV-APP.firebaseapp.com',
databaseURL: 'https://DEV-APP.firebaseio.com',
projectId: 'DEV-APP',
storageBucket: 'DEV-APP.appspot.com',
messagingSenderId: '123456789'
}
};
-
Open
src/app/app.module.ts
and replace thefirebasePlaceholderConfig
with your environment, i.eenvironment.firebase
-
And finally
ng serve