-
Notifications
You must be signed in to change notification settings - Fork 348
js server organized #1252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
js server organized #1252
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Thank you for submitting your pull request! We'll review it as soon as possible. For further communication, join our discord server https://discord.gg/tSqtvHUJzE. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request reorganizes the JavaScript server codebase with a major restructure from "backend" to "server" directory structure, along with implementing standardized response handling and improved code organization.
- Moves the entire codebase from
backend/toserver/src/with better folder organization - Implements a centralized response utility function for consistent API responses across all controllers
- Adds new features including cookie-parser middleware and health check endpoints
Reviewed Changes
Copilot reviewed 115 out of 118 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| server/src/utils/response.js | New centralized response utility for consistent API responses |
| server/src/utils/regex.js | Extracted regex patterns for email and password validation |
| server/src/typings/index.js | Added type definitions and constants for response status and node environment |
| server/src/server.js | Updated main server file with new imports and health endpoint |
| server/src/schemas/*.js | Restructured database schemas with improved organization |
| server/src/routes/*.js | Reorganized route files with updated imports and middleware structure |
| server/src/models/*.js | Updated model files with new import paths |
| server/src/middlewares/*.js | Restructured middleware files with consistent response handling |
| server/src/controllers/**/*.js | Split monolithic controllers into individual files with standardized responses |
| server/src/constants/*.js | Added configuration constants for better environment management |
| server/src/config/*.js | Updated configuration files with new import structure |
| server/package.json | Updated package scripts and added cookie-parser dependency |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Closes: #1231
Type of change ☑️
What sort of change have you made: