DEV Community


Any good express boilerplate generator

Saurabh Sharma
Web development React.js GraphQL Typescript JavaScript Design SEO
・1 min read

I usually use express-generator but I need to install a handful of packages before writing the first line of code.

Do you know any good express boilerplate which uses mongodb, passport, pug

Discussion (4)

marluanespiritusanto profile image
Marluan Espirituanto • Edited

You can use something like Sails.js that help jumpstart your app's backend without writing any code. According to documentation: Sails.js is a web framework that makes it easy to build custom, enterprise-grade Node.js apps. It is designed to resemble the MVC architecture from frameworks like Ruby on Rails, but with support for the more modern, data-oriented style of web app & API development. It's especially good for building realtime features like chat.

itsjzt profile image
Saurabh Sharma Author

Sails I have listen about it

marluanespiritusanto profile image
Marluan Espirituanto

Have you ever try Sails?

sagarb3 profile image
Sagar Bhattacharya

try generator-rest , for being used as an express app generator , it's pretty simple , and the code structure is very easy to understand and well divided, I made some tweaks in the boiler plate to support the async-await feature in the router level , the code structure is pretty well defined and the environments handled well and it does not force too much of it's own structure , so it's easy to tweak , secure by default and well explained.

I liked it's way of writing mongoose method and making a common response handler