Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 791 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 791 Bytes

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