Skip to content

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

Notifications You must be signed in to change notification settings

daniloab/koa-crud-backend

Repository files navigation

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

  • create connection with MongoDB
  • create user model

APIs

  • GET user
  • GET ALL create user
  • POST user #10
    • implement body values validation with yup;
    • create new user if valid
    • validate if user exists and return
  • DELETE user

Auth Flow

  • login
  • validate user token
  • sign up

follow me

Twitter Twitch

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published