Learn Expressjs in one project
Published in
1 min readMar 14, 2018
I’ve been working on express for more than a year and it’s been wonderful journey so far.
There are many good articles for learning various topics which helps you in making your express application better. but, integrating them in your project and working with them is pretty hard so, I’ve decided to make small project called “express-zero-config” which helps you in setting up your project in no time.
Here are the features of this project.
- dev and production environments.
- Routing.
- Testing using Mocha and Chai.
- cross env support.
- Password encryption using bcryptjs.
- cors support.
- Using PM2 process managers for production.
- gzip compression for high performance.
- Securing APIs using tokens (jsonwebtoken).
- Connecting MongoDB using mongoose.
- Connectig MySQL Database.
- validating user inputs using validator.
- Logging and Querying errors & exceptions using Winston.
- No stack trace for production.
- No console.log in entire project.
- Using middleware to connect Database.
- handling 404 errors.
- centralized all the errors.
- using async await without single try-catch.
- Authenticating user using both MongoDB and MySQL.
- ESLint configuration.
I will be adding more things to this project such GraphQL support.
I’m also accepting pull requests, please do contribute to the project.
Happy coding.