express-mongoose-es6-rest-api icon indicating copy to clipboard operation
express-mongoose-es6-rest-api copied to clipboard

:collision: A boilerplate application for building RESTful APIs Microservice in Node.js using express and mongoose in ES6 with code coverage and JsonWebToken Authentication

Results 70 express-mongoose-es6-rest-api issues
Sort by recently updated
recently updated
newest added

With babel, I can use import/export statements, especially `export default` and `export {}`

Cannot get api to work, changed the database name to one that i created on mongo and this error pops "message": "Internal Server Error", "stack": "Error: Invalid database name: 'vsv:27017'

{"message":"Not Found","stack":"Error: API not found\n at APIError.ExtendableError (/home/syed/Documents/api/UserRole/dist/server/helpers/APIError.js:35:11)\n at new APIError (/home/syed/Documents/api/UserRole/dist/server/helpers/APIError.js:63:101)\n at /home/syed/Documents/api/UserRole/dist/config/express.js:122:13\n at Layer.handle [as handle_request] (/home/syed/Documents/api/UserRole/node_modules/express/lib/router/layer.js:95:5)\n at trim_prefix (/home/syed/Documents/api/UserRole/node_modules/express/lib/router/index.js:312:13)\n at /home/syed/Documents/api/UserRole/node_modules/express/lib/router/index.js:280:7\n at Function.process_params (/home/syed/Documents/api/UserRole/node_modules/express/lib/router/index.js:330:12)\n at next (/home/syed/Documents/api/UserRole/node_modules/express/lib/router/index.js:271:10)\n...

`app.use("/static", express.static(path.join(__dirname, "public"))); ` How to server static files? I did some wrong? I put it on config/express.js

Hi @kunalkapadia! I really appreciated this boilerplate you built - JWT is often implemented really confusingly but your implementation made it super straightforward and nice. I've been contributing to the...

Mockgoose uses an in-memory version of mongodb so tests start fresh each time and no database is polluted should certain tests fail. Edit: one thing ive noticed with Mockgoose is...