Angular Base Application with Firebase authentication and database. This project is meant to give beginning developers a head-start in developing their own web application.
Feel free to leave your suggestions, problems, safety concerns or questions in the respected section here on Github.
- responsive design (mobile first)
- local and Google authentication
- persistent login
Livepreview: https://angular-base-app.gubler-it.com
- Install NodeJS -> https://nodejs.org/en/download/
- Install angular/cli -> npm install -g @angular/cli
- Clone this project with git clone https://github.com/beatgubler/angular-base-app.git or download manually npm install -> ng serve
- Log into https://console.firebase.google.com/
- Create New Project
- Create Firestore Database and change the rules to:
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if
true
}
}
}
- Create Authentication method: Email/Password + Google
- Add App and copy the firebaseConfig
- replace the firebaseConfig with your own config from the Firebase Console
- Firebase - https://www.npmjs.com/package/firebase
- AngularFire - https://www.npmjs.com/package/@angular/fire
- Angular Material - https://material.angular.io/
- Bootstrap - https://getbootstrap.com/
- firebase security rules are not restrictive enough
- angularfire's modular API should be used
![angular-base-app [Preview]](https://i.imgur.com/3fwBien.png)