Skip to content
Branch: master
Find file History
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
migrations prettify examples Sep 25, 2019
models random small improvements Nov 11, 2019
.prettierrc.json prettify examples Sep 25, 2019
README.md Update README.md Nov 30, 2019
api.js support instance query updates and patches in typings Nov 30, 2019
app.js prettify examples Sep 25, 2019
client.js prettify examples Sep 25, 2019
knexfile.js prettify examples Sep 25, 2019
package.json update objection version in example projects Dec 4, 2019

README.md

Koa 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

git clone git@github.com:Vincit/objection.js.git objection
cd objection/examples/koa
npm install
npm start
node client.js
You can’t perform that action at this time.