Link for postman api collection from which you can test api link
or test with swagger ui
Clone repo
git clone https://github.com/Ptopic/Locastic-node-js-assigment.git
Cd into backend folder and install dependacies
cd backend
npm i
Start dev server
npm run start
Route for calling api
http://localhost:3001/api/blog/
Swagger ui route
http://localhost:3001/api-docs/
JWT_SECRET=
MYSQL_HOST=
MYSQL_USER=
MYSQL_PASSWORD=
MYSQL_DATABASE=
Gmail email and password needs to be setup for nodemailer usage it cant be just your regular password because its unsafe
Use this link to learn how
GMAIL_EMAIL=
GMAIL_PASSWORD=