@ra-data-simple-rest-backend/koa-sequelize
TypeScript icon, indicating that this package has built-in type declarations

0.0.12 • Public • Published

Koa Sequelize

Build API for React admin simple rest client in a project using Koa and Sequelize.

Install

yarn add @ra-data-simple-rest-backend/koa-sequelize

Usage

import Koa from 'koa'
import koaBody from 'koa-body'

import { User } from './models'

const app = new Koa()
app.use(koaBody())

const router = rest('/users', User, [CREATE, GET_LIST, GET_ONE, UPDATE, DELETE ])
app.use(router.routes()).use(router.allowedMethods())

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.12
    0
    • latest

Version History

Package Sidebar

Install

npm i @ra-data-simple-rest-backend/koa-sequelize

Weekly Downloads

0

Version

0.0.12

License

MIT

Unpacked Size

210 kB

Total Files

8

Last publish

Collaborators

  • maruware