opendevs

Scaffold starter Express.js App with ease

express.js
node.js
javascript
backend
Last updated at: Tue Nov 01 2022

hi everyone, πŸ‘‹ today we’ll learn about how use a tool that generates new express applications in everyone''s favourite language typescript with various options to choose from based on your project needs

🏠 homepage

✨ npm link

install

npm i -g express-boilerplate-generator

usage

Run anyone of following commands:

$ express-gen # or $ express-typescript-generator # or $ express-ts-gen

Or, to avoid installation and usage simply use the following command:

npx express-boilerplate-generator

❓ what is it

creates a new express application as a starter boilerplate similar to the express-gen module. except this new application is configured to use typeScript instead of plain javascript and provides various options such as, kind of project structure to use with focus on auth support along with documentaion to fasten the development process.

πŸ€” why express-boilerplate-generator

nodejs is great for the rapid development of web-projects, but is often neglected because of the lack of type safety. typescript solves this issue and (along with its linter file) can even make your code more robust than some other static languages like java.

there are some other tools out there to generate express apps with javascript such as Express application generator, but these either haven''t been updated in a while or don''t support typescript or don''t have pre-added documentation support.

in this application you have two options to setup a project either with or without auth.

πŸ“œ different options available explained

namedescription
express-server-boilerplatethis type of structure provides auth-less express server boilerplate codes to kickstart your backend development along with the support of typedoc & swagger.
express-server-boilerplate-auththis type of structure provides express server boilerplate codes to kickstart your backend development with authentication support. It uses passport-jwt and passport as dependency.

happy app-deving 😊

so let''s build some express apps & give this project an ⭐ at github

Copyright Β© 2022 opendevs

Learn ● Develop ● Ace
All illustrations by Storyset