Skip to content

Developement#6

Open
doniby wants to merge 9 commits intoH8-FSJS-P2S5:mainfrom
doniby:developement
Open

Developement#6
doniby wants to merge 9 commits intoH8-FSJS-P2S5:mainfrom
doniby:developement

Conversation

@doniby
Copy link

@doniby doniby commented May 30, 2025

No description provided.

doniby added 9 commits May 27, 2025 20:22
- 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
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.

1 participant