Backend implementation using koa js to build a REST API.
-
run
yarnto install dependencies -
create a new file
.envand fill it with the.env.examplecontent -
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