In order to be able to use this project, you have to follow these steps:
- Don't forget to install all dependencies with
npm i - Install the necessary tools with
npm i -g firebase-tools - Login to firebase with
firebase login - Initialize your firestore database with
firebase init firestore - Edit your
firetore.rulesfile with your restrictions rules - Create a file named
firebase.tsin the./srcfolder with the following content:
import * as firebase from 'firebase/app';
import 'firebase/firestore';
const firebaseConfig = { projectId: 'YOUR_FIREBASE_PROJECT_ID_HERE' };
firebase.initializeApp(firebaseConfig);
export default firebase;- Run with
npm startand enjoy!