Tutorial Create a CRUD App with Ionic 4, Firestore and AngularFire 5.2+
Download the installer for Node.js 6 or greater. Install both [Ionic].
$ npm install ionic typescript @angular/cli -g
...
$ npm ls -g cordova ionic npm typescript @angular/cli --depth 0
/Users/victor.dias/.nvm/versions/node/v12.6.0/lib
├── @angular/cli@8.3.3
├── cordova@9.0.0
├── ionic@5.2.7
├── npm@6.9.0
└── typescript@3.6.2
- Run
git clone https://github.com/meumobi/mmb-demos.crud-angularfirestore-ionic4.git crud-angularfirestore-ionic4
.cd crud-angularfirestore-ionic4
npm install
- Create a project at https://firebase.google.com/ and grab your web config:
- Add the config to your Angular environment
Update the environment.prod.ts
and environment.ts
files.
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: '...',
appId: '...',
}
};
- Run
ionic serve
- Profit. 🎉
- Unit and e2e tests
- Continuous integration with Github Actions
- Automated dependency updates with Greenkeeper
- Add standard-version
- Infinite scroll
- Convert form screen on modal
- based on UX best practices should use modal with forms
- Rendering placeholder: skeleton loading
- Auto deploy to Firebase hosting
- Google Analytics
- Slack