Open
Conversation
…ations on models)
- Added UserController with registration and login functionalities. - Removed unused bcryptjs and jwt helper files. - Created authenticate middleware for token verification. - Added migrations for Users, Entries, Categories, and related models. - Updated models to reflect new relationships and removed deprecated code. - Created routers for user authentication, entries, and categories. - Integrated axios for external translation service in geminiTranslate. - Updated package.json and package-lock.json with new dependencies.
- Changed the test script in package.json to use Jest with coverage and specific options. - Added Jest and Supertest as devDependencies. - Configured Jest to use a node test environment and set coverage thresholds for branches, functions, lines, and statements. feat: add Google login route to authentication router - Implemented a new route for Google login in authrouters.js, linking to the GoogleLogin method in UserController.
fix: update user migration to enforce non-null constraints on email, password, and tier fields fix: enforce non-null constraints on content and type fields in entry migration fix: enforce non-null constraints on translatedText and EntryId fields in translation migration fix: enforce non-null constraints on name and UserId fields in category migration and add unique constraint fix: enforce non-null constraints on EntryId and CategoryId fields in entry-category migration fix: enforce non-null constraints on orderId, UserId, and amount fields in transaction migration feat: add validation for required fields in category model feat: add validation for required fields in entry model feat: add validation for required fields in transaction model feat: add validation for required fields in translation model refactor: remove unnecessary password hashing logic in user model chore: update package-lock.json to include google-auth-library and other dependencies feat: add authentication middleware to protected routes in auth router fix: adjust transaction router to allow webhook notifications without authentication fix: update geminiTranslate service to handle API changes and improve error handling chore: add setup-test.sh script for setting up test environment
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.