1.3.1 • Published 7 years ago
generator-rest-express-typescript v1.3.1
generator-rest-express-typescript


Installation
First, install Yeoman and generator-rest-express-typescript using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-rest-express-typescriptThen generate your new project:
yo rest-express-typescript myappVery coolos features
- generate openapi documention with a simple command, and read it via swagger-ui
- Logs with morgan
Getting Started
- Run
npm startto preview and watch for changes - Run
npm run migration:runto run migration scripts - Run
npm run debugto lauchn debug mode - Run
npm run buildto create the production version - Run
npm run testto lauch jest test - Run
npm run swagger:generateto generate the swagger file from code
Docker
You can use docker during your developement process. First, build the docker image:
docker build -t myapp .And run it:
docker run -p 3000:3000 -v $(pwd):/usr/src/app myappTODO 🚧
- Add subcommand to create a new endpoint
Contribute
See the contributing docs.
License
MIT © Clément Lafont