This projects uses Firebase as a serverless backend. To run the App local, using the Firebase Emulator, there are a few staps to follow.
-
Install the Firebase CLI globally.
npm install -g firebase-tools
-
Login to the Firebase CLI with your Google account. After the login, you will receive a Token, save this Token, you will need it later!
firebase login:ci
-
Clonse the Git Repo.
git clone https://github.com/Alvadda/time-tracker.git
-
Install all the dependencies
npm install
-
Set up your .env file, to get access to your Firebase Project.
- Visit to your Project Settings
- Copy the firebaseConfig values in your .env file like in the example below
FIREBASE_API_KEY= apiKey FIREBASE_AUTH_DOMAIN= authDomain FIREBASE_PROJECT_ID= projectId FIREBASE_STORAGE_BUCKET= storageBucket FIREBASE_MESSAGING_SENDER_ID= messagingSenderId FIREBASE_APP_ID= appId FIREBASE_TOKEN= *Token from stap 2*
-
Set up the Emulator for testing with continues data