Backend implementation using koa js to build a REST API.
-
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
- create connection with MongoDB
- create user model
- 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
- login
- validate user token
- sign up