Express and Firebase
-
Clone this repo and change directory to the cloned folder
-
Install the packages
npm install or yarn
-
You need to download your Firebase Service Account json file, please follow the official instruction.
Put the file at project root.
⚠️ Always make sure the JSON file is git-ignored! -
Copy
.env.example
file and rename it to.env
at project root.Change the dummy FIREBASE_DATABASE_URL value with your Firebase project databaseURL, you can find it on your Firebase Console
-
Then start the server
npm start or yarn start
-
Update package
npm upate or yarn upgrade