Dev - #17
Merged
Merged
Dev#17
Conversation
…generated Prisma directory
- Added package.json scripts for development and Prisma commands. - Created Express app with health check and CORS support. - Configured Prisma client and environment variables. - Implemented authentication controllers for user registration and login. - Developed user repository for database interactions. - Set up authentication routes for user actions. - Configured TypeScript with strict settings and output directory. - Added Prisma schema and initial migration for User model. - Included SQL script for retrieving users.
…vice, update package type to commonjs
- Updated package.json to simplify test commands and added integration test command. - Added necessary type definitions for Jest and Supertest. - Created initial test files for authentication routes, server routes, password hashing, and authentication service. - Added Jest configuration file for TypeScript support and improved module path resolution.
…auth service login
…d into feature/auth-lint-fix
…th-fix Feature/main with tests and auth fix
- Changed package type from module to commonjs for compatibility. - Added JWT secret and expiration configuration in environment variables. - Updated login controller to return JWT token along with user details. - Added 'me' controller to retrieve the authenticated user's information. - Implemented user repository method to find user by ID. - Created JWT utility functions for signing and verifying tokens. - Added authentication middleware to protect routes and validate tokens. - Updated routes to include the new 'me' endpoint for user info retrieval.
- Added new Server and Plan models to the Prisma schema. - Introduced ServerStatus enum for server status management. - Updated UserProfile model to include a relation to the new Server model. - Created migration SQL for adding servers and plans tables with foreign key constraints. - Removed old prisma.config.bak file and added a new prisma.config.ts file for configuration. - Updated package.json to include Prisma as a dependency. - Excluded unnecessary files from TypeScript compilation.
- Added nodemailer as a dependency for sending emails. - Created mail service to handle sending verification emails. - Updated JWT utility to include email verification token signing and verification. - Modified User model in Prisma schema to include email verification timestamp. - Updated package.json to include new dependencies for nodemailer and its types.
This branch was previously deployed
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.
No description provided.