Backend Setup
Setting up the backend locally
Last updated
Setting up the backend locally
Last updated
Once you have cloned the and installed the dependencies in the root directory, you can take the following steps to setup the backend of the project.
You will be using the same Firebase App as the frontend or if you haven't already created a Firebase app, you can follow .
To get the Firebase App credentials, you will need to:
select the project
go to the 'Project Overview' by clicking on the gear icon
choose the 'Project Settings' option
navigate to the 'Service Accounts' tab
click on 'Generate new private key'. This will generate a private key and automatically download a JSON file containing the app credentials. The downloaded JSON file will have the following structure:
To add the Firebase App credentials, you can take the folllowing steps:
Create a .env
file
Copy the .env.example
file or use the following template:
Copy the downloaded JSON file into the FIREBASE_CREDENTIALS
variable
To ensure that the backend server is functional, you can try starting the server by running the following command
You are all setup. 🎉
To run the application, start both the frontend and backend by following .