Skip to content

Latest commit

 

History

History
44 lines (37 loc) · 938 Bytes

File metadata and controls

44 lines (37 loc) · 938 Bytes

CodeLeap Challenge - Backend

API developed as a backend challenge for a job application.

Stack

  • Backend: Fastify.js, Node.js, TypeScript, TypeBox
  • ORM: DrizzleORM
  • Database: PostgreSQL
  • Validation: TypeBox schemas
  • Containerization: Docker & Docker Compose

Features

  • Full CRUD for posts (/api/posts)
  • Pagination, sorting, and filtering by username
  • Data validation using TypeBox
  • Centralized error handling
  • Configurable via environment variables
  • Dockerized for consistent development environment

Getting Started

  1. Clone the repository:
git clone https://github.com/igorpardinho/codeleap.git
cd codeleap
  1. Start Docker containers:
docker-compose up -d
  1. Install dependencies (if running outside Docker)
npm install
  1. Generate the database schema
npm run db:generate
  1. Start the server
npm run dev