kunalkapadia / express-mongoose-es6-rest-api

:collision: A boilerplate application for building RESTful APIs Microservice in Node.js using express and mongoose in ES6 with code coverage and JsonWebToken Authentication
http://kunalkapadia.github.io/express-mongoose-es6-rest-api/
MIT License
2.94k stars 694 forks source link

getting the below error after npm start #460

Open sunil0047 opened 5 years ago

sunil0047 commented 5 years ago

C:\Users\git project\express-mongoose-es6-rest-api\config\config.js:30 throw new Error(Config validation error: ${error.message}); ^

Error: Config validation error: child "JWT_SECRET" fails because ["JWT_SECRET" is required]

gfpalacios commented 5 years ago

take a look at your .env.example and create a copy of that file as ".env". Then, create a db in your mongo as "express-mongoose-es6-rest-api-development" and restart the server.