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-typescript
Then generate your new project:
yo rest-express-typescript myapp
- generate openapi documention with a simple command, and read it via swagger-ui
- Logs with morgan
- Run
npm start
to preview and watch for changes - Run
npm run migration:run
to run migration scripts - Run
npm run debug
to lauchn debug mode - Run
npm run build
to create the production version - Run
npm run test
to lauch jest test - Run
npm run swagger:generate
to generate the swagger file from code
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 myapp
- Add subcommand to create a new endpoint
See the contributing docs.
MIT © Clément Lafont