New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

generate-express

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generate-express

Express Generator with es6+/typescript and choice of database.

latest
Source
npmnpm
Version
4.0.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

generate-express logo

Generate an Express app from the command line

Tired of searching for the right boilerplate repo? Generate your next ExpressJS project from the command line, and pick the options you need to fit your next project.

Now with Typescript support!

Features

  • Code in ES6+ or Typescript
  • Interactive CLI prompts walk you through each option to customize your build (no more inline flags)
  • Choose your own database starter configs (mongojs, mongo + mongoose, sequelize, or none)
  • Optional caching configs for Redis
  • File watcher via nodemon to transpile code on change

Coming soon

  • Ability to specify SQL dialect for sequelize (postgres, mysql, sqlite, etc.)
  • More CLI options for more packages
  • Testing: starting with jest will add configs for other frameworks eventually
  • More testing of this framework itself

Quick Start

npx generate-express myCoolProject
  • You can download npx here by running npm i -g npx
  • Example of generated project structure
  • Dependencies are installed automatically

Start your Express.js server

# run with file watch (development)
$ npm run start

Default routes

localhost:3001/api
localhost:3001/api/users

Other npm scripts

# run with file watch (development)
$ npm run start

# run as production
$ npm run prod

# create prod build to /dist
$ npm run build

Example project structure

MyCoolApp
└── server
    ├── app.js
    ├── bin
    │   └── www.js
    ├── controllers
    │   └── userController.js
    ├── models
    │   ├── User.js
    │   └── index.js
    └── routes
        ├── hello.js
        ├── index.js
        └── users.js

Contributions

Feel free to raise an issue or create a Pull Request if you see ways that can improve this library.

Current Contributors

Inspired by

Express' application generator.

License

MIT

Keywords

express

FAQs

Package last updated on 15 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts