Skip to content

Backend feat#1

Open
AffableMelon wants to merge 12 commits into
GDGAAU:backendfrom
AffableMelon:main
Open

Backend feat#1
AffableMelon wants to merge 12 commits into
GDGAAU:backendfrom
AffableMelon:main

Conversation

@AffableMelon
Copy link
Copy Markdown

This pull request introduces the backend implementation for a classroom reservation system.

Core Application and API Endpoints:

  • Implemented the main app.js file to configure middleware, routes, and error handling for the Express application.
  • modular route controllers for:
    • User management (backend/controllers/users.js): Includes endpoints for retrieving, creating, and managing users.
    • Classroom management (backend/controllers/classrooms.js): Includes endpoints for fetching and creating classrooms.
    • Reservation management (backend/controllers/reservations.js): Includes endpoints for creating, updating, deleting, and fetching reservations with conflict checks.
    • Authentication (backend/controllers/login.js and backend/controllers/signup.js): Includes login and signup functionality with JWT-based authentication. [1] [2]

Database Schema and Migrations:

  • Created initial Prisma migration (backend/prisma/migrations/20250424152853_init/migration.sql) to define tables for users, buildings, floors, classrooms, and reservations, along with relationships and constraints.

Documentation and Startup:

  • Updated backend/README.md with instructions for setting up and running the backend, including database migrations and seeding.
  • Added backend/index.js to start the Express server on the configured port.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants