Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johnrazeur/generator-rest-express-typescript
Create a REST API with express and typescript
https://github.com/johnrazeur/generator-rest-express-typescript
docker generator rest swagger typescript yeoman
Last synced: 6 days ago
JSON representation
Create a REST API with express and typescript
- Host: GitHub
- URL: https://github.com/johnrazeur/generator-rest-express-typescript
- Owner: johnrazeur
- License: mit
- Created: 2019-06-09T09:48:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-28T21:33:18.000Z (over 1 year ago)
- Last Synced: 2024-04-24T08:15:38.442Z (7 months ago)
- Topics: docker, generator, rest, swagger, typescript, yeoman
- Language: TypeScript
- Size: 586 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# generator-rest-express-typescript [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage percentage][coveralls-image]][coveralls-url]
> Create a REST API in typescript with [Express](https://expressjs.com/fr/) and [Typeorm](https://typeorm.io/#/)![](screenshot.png)
## Installation
First, install [Yeoman](http://yeoman.io) and generator-rest-express-typescript using [npm](https://www.npmjs.com/) (we assume you have pre-installed [node.js](https://nodejs.org/)).
```bash
npm install -g yo
npm install -g generator-rest-express-typescript
```Then generate your new project:
```bash
yo rest-express-typescript myapp
```
## Very coolos features* generate openapi documention with a simple command, and read it via swagger-ui
* Logs with morgan## Getting Started
* 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
## DockerYou can use docker during your developement process.
First, build the docker image:
```bash
docker build -t myapp .
```And run it:
```bash
docker run -p 3000:3000 -v $(pwd):/usr/src/app myapp
```
## TODO 🚧Â* Add subcommand to create a new endpoint
## Contribute
See the [contributing docs](contributing.md).
## License
MIT © [Clément Lafont]([email protected])
[npm-image]: https://badge.fury.io/js/generator-rest-express-typescript.svg
[npm-url]: https://npmjs.org/package/generator-rest-express-typescript
[travis-image]: https://travis-ci.org/johnrazeur/generator-rest-express-typescript.svg?branch=master
[travis-url]: https://travis-ci.org/johnrazeur/generator-rest-express-typescript
[coveralls-image]: https://coveralls.io/repos/johnrazeur/generator-rest-express-typescript/badge.svg
[coveralls-url]: https://coveralls.io/r/johnrazeur/generator-rest-express-typescript