A Fastify + PostgreSQL backend application for the interview exercise.
- Install dependencies:
npm install- Start database
docker-compose up -d- Set up your database connection:
cp .env.example .env
# Edit .env with your database credentials- Run migrations:
npm run migrate- Start the development server:
npm run devThe server will start on http://localhost:3000
GET /users/:id- Get a user by ID
GET /tasks- List all tasksGET /tasks/:id- Get a task by IDPOST /tasks- Create a new taskPATCH /tasks/:id- Update a taskDELETE /tasks/:id- Delete a task
See src/db/migrations/001_initial.sql for the database schema.