This is the REST API backend for Synergy, a simple colaborative web app
It's a node-express REST API server with MongoDB.
- Install git
- Download the server by running the following code in terminal/command prompt/bash/powershell
git clone https://github.com/lullabyX/synergy-frontend.git - Run the following commmand to install necessary dependencies
npm install - Now, create a file name .env in the root folder of the project. Just like this
This file will contain all the environment variables for the server. You'll need to fill them up with your own value.
The most important ones are DATABASE which is MongoDB url, JWT_SECRET_KEY which is the key that encrypts json web token, JWT_REFRESH_SECRET_KEY, JWT_TOKEN_TIMEOUT, COKIE_SECRET, SYNERGY_BACKEND the url the server will be running, SYNERGY_FRONTEND url for the frontend. SIB means sendinblue which is an email service provider used for email transaction. You'll need to signup at SIB to get your api key and create your own template for email verification and password reset.
- Finally, run the code to start the server
npm start
