Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-23T22:43:01.000Z (almost 2 years ago)
- Last Synced: 2023-03-08T08:10:44.273Z (almost 2 years ago)
- Topics: example, knex, koa
- Language: JavaScript
- Size: 2.23 MB
- Stars: 2
- 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-examplecd 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
```