How dtc04/linkudp works
Project type and purpose
• This is a backend-only REST API service for the LinkUDP platform.
• It’s built with NestJS (Node.js framework), uses Prisma as the ORM, and PostgreSQL as the persistent data store.
• It exposes endpoints (controllers) to connect students with university tutors.
File structure
• Top‐level “Backend” directory contains:
• src/ with NestJS modules, controllers (app.controller.ts) and services (app.service.ts)
• prisma/ with schema.prisma, migration files, and Prisma config
• docker-compose.yml for spinning up PostgreSQL
• config files: nest-cli.json, tsconfig.json, eslint, Prettier, .nvmrc
• tests under test/ and src/*.spec.ts for unit and e2e testing
• dist/ is the compiled output of the TypeScript build.
• package.json defines scripts (start:dev, start:prod, test) and dependencies.
README for additional insights
• Tech stack: NestJS, Prisma, PostgreSQL, Docker
• Development workflow: Docker Compose for DB, .env for DATABASE_URL, Prisma migrations, Prisma Studio.
• Emphasis on hot reload in development, separate production command.
Details to capture
• NestJS module boundaries (app.module → registers controller & service).
• The fact that environment variables (DATABASE_URL) configure Prisma’s connection.
• The use of Docker Compose: map port 5432 and network links.
• Migration flow: Prisma Migrate → applies schema changes to PostgreSQL.