This project was generated with Angular CLI version 6.2.1.
Checkout /Firebase-Meetup.pdf
- Install Angular CLI
- Create a new Firebase project
- Open
/src/environments/environment.ts
and add your Firebase configuration. You can find your project configuration in the Firebase Console. From the project overview page, click Add app and select Add Firebase to your web app.
export const environment = {
production: false,
firebase: {
apiKey: '<your-key>',
authDomain: '<your-project-authdomain>',
databaseURL: '<your-database-URL>',
projectId: '<your-project-id>',
storageBucket: '<your-storage-bucket>',
messagingSenderId: '<your-messaging-sender-id>'
}
};
- The SignIn component implements Google Login. Enable it through the authentication section in your firebase console.
Notice This project uses Angular Firebase, which is an angular wrapper of the original firebase js library. Checkout their tutorial for details and code samples.
Run npm install
inside the project library.
AND ALSO inside ./functions
folder if you plan to deploy them.
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, which can later be deployed to firebase.
- Install Firebase CLI
- Run
firebase login
to connect to your account - Run
firebase use --add
inside your project folder, select your new project and give it the alias 'default' - Run
firebase deploy
to deploy your project.
NOTICE: firebase deploy
will also try to upload the angular build to your firebase hosting, so make sure you run ng build
first.
- Excellent source for Angular Firebase Videos - https://angularfirebase.com/
- Great videos about firebase - https://www.youtube.com/user/Firebase?hl=he