Backend for the blogging platform
This repo holds the backend code for a seo friendly blogging platform. It uses mongodb as the database and node with express in frontend. It also has feature to login with google link to the frontend repo
- Clone the repo
- Cd into the folder and run
yarn install
- Run the following command to add devDependcies
yarn add nodemon dotenv morgan
- Create a .env file and have the following variables in that
NODE_ENV=development
APP_NAME=
PORT=
CLIENT_URL=
DB_PASSWORD=
DB_NAME=
DB_DATABASE=
DB_LOCAL=
JWT_SECRET=
JWT_ACCOUNT_ACTIVATION=
SENDGRID_API_KEY=
SENDGRID_API_KEY_2=
EMAIL_TO=
EMAIL_FROM=
JWT_RESET_PASSWORD=
GOOGLE_CLIENT_ID=
- Run
nodemon server.js
to open up the server. The server will be running on the port described in the .env file