Conversation
- Add JWT and session configuration for user authentication. - Implement Google OAuth strategy using Passport.js. - Create routes for session management, login, logout, and magic link. - Ensure user data is persisted in the database with Prisma.
- Create comprehensive authentication setup guide - Add database quick reference with common commands - Document phase 2 completion summary and API endpoints - Update development steps to reflect phase 2 completion
- Change BASE_URL to point to the API server for OAuth callbacks. - Introduce FRONTEND_URL for CORS configuration. - Add a new script to test Google OAuth authentication flow.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request establishes the foundational backend infrastructure for the HackScore-AI project, focusing on database setup, authentication, and initial developer experience improvements. Major changes include the introduction of a robust PostgreSQL schema using Prisma ORM, sample data seeding, Google OAuth integration, and improved documentation and configuration for local development.
Backend Infrastructure & Database:
schema.prisma) defining tables for users, chat sessions, messages, and uploaded files, with appropriate relations and indexes. [1] [2]prisma/seed.ts) to populate the database with demo users, sample chat sessions, messages, and uploaded files for development/testing.Authentication & Security:
src/config/auth.ts..env.exampleto clarify and separate Google/GitHub OAuth credentials, database URL, and frontend/backend URLs for local development.Developer Experience & Documentation:
README.md, including architecture overview, tech stack, quick start guide, and database/authentication instructions.package.jsonscripts for database migration, seeding, reset, and Prisma Studio access; added relevant dependencies for backend and type safety..gitignoreto prevent committing environment files and generated Prisma code.