koa-crud-backend icon indicating copy to clipboard operation
koa-crud-backend copied to clipboard

Backend implementation of REST api with Node.js, Koa.js, MongoDB and Jest Tests

Koa JS CRUD Backend Implementation

Backend implementation using koa js to build a REST API.

run

  • run yarn to install dependencies

  • create a new file .env and fill it with the .env.example content

  • yarn start

see the api on http://localhost:6000

pipeline

MongoDB

  • [x] create connection with MongoDB
  • [x] create user model

APIs

  • [x] GET user
  • [x] GET ALL create user
  • [x] POST user https://github.com/daniloab/koa-crud-backend/issues/10
    • [x] implement body values validation with yup;
    • [x] create new user if valid
    • [x] validate if user exists and return
  • [x] DELETE user

Auth Flow

  • [x] login
  • [x] validate user token
  • [ ] sign up

follow me

Twitter Twitch