Skip to content

Feature/realtime poll server#1

Merged
LordEaster merged 17 commits intomainfrom
feature/realtime-poll-server
Feb 16, 2025
Merged

Feature/realtime poll server#1
LordEaster merged 17 commits intomainfrom
feature/realtime-poll-server

Conversation

@boytur
Copy link
Copy Markdown
Member

@boytur boytur commented Feb 16, 2025

This pull request includes significant updates to the backend of the application, focusing on adding new dependencies, updating the Prisma schema and migrations, seeding the database, and setting up the Express server with middleware.

Dependency Updates:

  • backend/package.json: Added new dependencies such as bcrypt, express-validator, helmet, jsonwebtoken, morgan, and redis, along with their respective type definitions.

Prisma Schema and Migrations:

Seeding the Database:

  • backend/prisma/seeds/seed.ts: Created a seed script to populate the database with initial data, including an admin user, an event, polls, options, and guests.

Express Server Setup:

  • backend/src/app.ts: Set up the Express server with middleware for CORS, security headers, logging, and JSON parsing. Added a basic route and a global error handler. Implemented graceful shutdown and connected to Prisma.

Prisma Client Initialization:

…ler, and routes for guest login and user profile retrieval
@boytur boytur requested review from LordEaster and ohmjess February 16, 2025 17:58
@LordEaster LordEaster merged commit 6b35704 into main Feb 16, 2025
@LordEaster LordEaster deleted the feature/realtime-poll-server branch February 16, 2025 18:26
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