https://github.com/kasvith/objection.js-ts-error-sample
https://github.com/kasvith/objection.js-ts-error-sample
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kasvith/objection.js-ts-error-sample
- Owner: kasvith
- Created: 2021-09-17T08:55:42.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-17T09:04:05.000Z (over 4 years ago)
- Last Synced: 2025-02-04T04:30:58.541Z (over 1 year ago)
- Language: TypeScript
- Size: 25.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Koa typescript example project
This is an example project that targets node 8.0.0 and up. The project is a simple Koa server with a REST API that demonstrates the basic functionalities of objection like models, queries, relations, eager loading and graph inserts.
Note that this is not an example of how to build a web server. It's an example of how to use objection in a web server. All other aspects are kept as simple and minimal as possible.
# Install and run
```sh
git clone git@github.com:Vincit/objection.js.git objection
cd objection/examples/koa-ts
npm install
npm start
node client.js
```
> Note: Checkout tsconfig.json which is copied from NestJS