Backend tasks(api) for Bridge Labs (live documentation)
-
Clone the repository in preferred directory on your computer
git clone <project-url>
-
Enter project directory
cd BL-backend
-
Install dependencies
npm install
-
Set up .env file
touch .env
-
Define project's required environment variables in .env file
MONGODB_URL=<mongodb connection string> PORT=5000 MAIL_EMAIL=<email, preferable gmail> MAIL_PASSWORD=<will have to do some extra setting up to get this ready> CLOUD_NAME=<cloudinary name> CLOUD_API_KEY=<cloudinary api keu> CLOUD_API_SECRET=<cloudinary api secret> JWT_SECRET=<jwt secret string>
use this to set up mail password
-
Start the server
nodemon server
Or
node server