A simple API that allows you to create, read, update and delete tasks.
- Node.js
- pnpm
- PostgreSQL
- Clone the repository
- Run
pnpm installto install the dependencies - Create a
.envfile based on the.env.examplefile. - Run
pnpm dlx prisma migrate deployto create the database tables. - Run
pnpm run start:devto start the development server orpnpm run startto start the production server.
POST /tasks: Create a new taskGET /tasks: Get all tasksGET /tasks/:id: Get a task by IDPATCH /tasks/:id: Update a task by IDDELETE /tasks/:id: Delete a task by ID
To view the API documentation, visit the /swagger endpoint.
To check the health of the API, visit the / endpoint.