Skip to content

Example integration of MikroORM into Koa (in typescript)

Notifications You must be signed in to change notification settings

mikro-orm/koa-ts-example-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Koa + SQLite + TypeScript example integration

  1. Install dependencies via yarn or npm install
  2. Create DB schema via npx mikro-orm schema:create -r
  3. Run via yarn start or yarn start:dev (watch mode)
  4. Example API is running on localhost:3000

Available routes:

GET     /author        finds all authors
GET     /author/:id    finds author by id
POST    /author        creates new author
PUT     /author/:id    updates author by id
GET     /book          finds all books
GET     /book/:id      finds book by id
POST    /book          creates new book
PUT     /book/:id      updates book by id

About

Example integration of MikroORM into Koa (in typescript)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published