https://github.com/typeorm/typescript-koa-example
Example how to use Koa and TypeORM with TypeScript.
https://github.com/typeorm/typescript-koa-example
Last synced: 5 months ago
JSON representation
Example how to use Koa and TypeORM with TypeScript.
- Host: GitHub
- URL: https://github.com/typeorm/typescript-koa-example
- Owner: typeorm
- Created: 2017-03-17T17:55:12.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-04-19T11:42:55.000Z (almost 8 years ago)
- Last Synced: 2025-08-14T07:45:58.124Z (7 months ago)
- Language: TypeScript
- Size: 7.81 KB
- Stars: 191
- Watchers: 9
- Forks: 36
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example how to use Koa and TypeORM with TypeScript
1. clone repository
2. run `npm i`
3. edit `ormconfig.json` and change your database configuration (you can also change a database type, but don't forget to install specific database drivers)
4. run `npm start`
5. open `http://localhost:3000/posts` and you'll empty array
6. use curl, postman or other tools to send http requests to test your typeorm-based API
## How to use CLI?
1. install `typeorm` globally: `npm i -g typeorm`
2. run `typeorm -h` to show list of available commands