/koa-mr-example

koa-mr usage example

Primary LanguageJavaScript

koa-mr example

run

to install dependencies

npm install

to run

npm start

test endpoints

// home
http://localhost:3000/

// async/await example
http://localhost:3000/slow

// list users
http://localhost:3000/users

// user details
http://localhost:3000/users/{id}

tests

supertest is used to unit test endpoints

to run tests

npm test