https://github.com/ricardocanelas/node-koa-knex-example
Simple example using Koa + Knex
https://github.com/ricardocanelas/node-koa-knex-example
example knex koa
Last synced: 8 months ago
JSON representation
Simple example using Koa + Knex
- Host: GitHub
- URL: https://github.com/ricardocanelas/node-koa-knex-example
- Owner: ricardocanelas
- License: mit
- Created: 2019-05-05T17:28:18.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-23T22:43:01.000Z (about 3 years ago)
- Last Synced: 2025-05-16T06:36:32.031Z (9 months ago)
- Topics: example, knex, koa
- Language: JavaScript
- Size: 2.23 MB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 😃 Simple example using Koa
Simple RESTful API implementation on Node.js + Express + Knex + Sqlite + Objection (ORM).
---
## 👉🏻 Prerequisites
- [Sqlite](https://www.sqlite.org)
- [NodeJs](https://nodejs.org/en/)
---
## 👉🏻 Getting Started
Clone the repo and use `yarn` to install dependecies
```bash
git clone https://github.com/ricardocanelas/node-koa-knex-example
cd node-koa-knex-example/
yarn install
```
```bash
yarn db:migration
yarn db:seed
```
Start server
```
yarn start
```
Then visit `http://localhost:3001`
**Test**
```
yarn test
```