Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```