Backend implementation using Fastify to build a REST API. Any help is welcome!
-
run
pnpm i
to install dependencies -
create a new file
.env
and fill it with the.env.example
content -
run
pnpm start:db
to create docker container with mongodb -
after those steps, start the dev server
pnpm start:dev
see the api on http://localhost:3000
- create connection with MongoDB
- create user model
- GET user
- GET ALL create user
- POST user daniloab/koa-crud-backend#10
- implement body values validation with zod maybe;
- create new user if valid
- validate if user exists and return
- DELETE user
- login
- [] validate user token
- [] sign up