Skip to content

Qweebi/qweebi-backend-interview-exercise

Repository files navigation

Backend Interview Exercise

A Fastify + PostgreSQL backend application for the interview exercise.

Setup

  1. Install dependencies:
npm install
  1. Start database
docker-compose up -d
  1. Set up your database connection:
cp .env.example .env
# Edit .env with your database credentials
  1. Run migrations:
npm run migrate
  1. Start the development server:
npm run dev

The server will start on http://localhost:3000

Available Endpoints

Users

  • GET /users/:id - Get a user by ID

Tasks

  • GET /tasks - List all tasks
  • GET /tasks/:id - Get a task by ID
  • POST /tasks - Create a new task
  • PATCH /tasks/:id - Update a task
  • DELETE /tasks/:id - Delete a task

Database Schema

See src/db/migrations/001_initial.sql for the database schema.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors