An API Endpoint for Medivance Application.
We are using express.js ans firebase-admin to make an API using RESTful JSON.
git clone https://github.com/APAC-Medivance/medivance-backend.git- Go to your Firebase app
- Then, go to
Project Settings - And then, go to
Service Accounts - In
Service Accounts, Generate your new private key
Note
Make sure you are in "Firebase Admin SDK".
- After that, the file will automatically downloaded as JSON file.
Important
After downloading JSON Files, rename the file to serviceAccountKey.json.
- Copy the JSON file into
configfolder
Note
If it's empty or not define, just create the config folder
Note
You must put database URL in URL.
Take a look at this code on .env.example :
URL= # This is your database URL
PORT= # This is port of your apps, Default is 3000npm start