typescript-koa-example
typescript-koa-example copied to clipboard
Example how to use Koa and TypeORM with TypeScript.
Example how to use Koa and TypeORM with TypeScript
- clone repository
- run
npm i - edit
ormconfig.jsonand change your database configuration (you can also change a database type, but don't forget to install specific database drivers) - run
npm start - open
http://localhost:3000/postsand you'll empty array - use curl, postman or other tools to send http requests to test your typeorm-based API
How to use CLI?
- install
typeormglobally:npm i -g typeorm - run
typeorm -hto show list of available commands