koa-crud-backend
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
yarnto install dependencies -
create a new file
.envand fill it with the.env.examplecontent -
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