Skip to content

Conversation

Avdhesh-Varshney
Copy link
Member

Closes: #1231

Type of change ☑️

What sort of change have you made:

  • Bug fix
  • New feature
  • Code style update (formatting, local variables)
  • Database update

@Avdhesh-Varshney Avdhesh-Varshney self-assigned this Sep 28, 2025
@Avdhesh-Varshney Avdhesh-Varshney added the enhancement New feature or request label Sep 28, 2025
@Avdhesh-Varshney Avdhesh-Varshney temporarily deployed to avdhesh/server-setup - code-a2z PR #1252 September 28, 2025 08:56 — with Render Destroyed
Copy link

vercel bot commented Sep 28, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
code-a2z Ready Ready Preview Comment Sep 28, 2025 9:28am
code-a2z-253k Error Error Sep 28, 2025 9:28am

Copy link

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.

Copy link
Contributor

@Copilot Copilot AI left a 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/ to server/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.

@Avdhesh-Varshney Avdhesh-Varshney merged commit 88278f7 into main Sep 28, 2025
2 checks passed
@Avdhesh-Varshney Avdhesh-Varshney deleted the avdhesh/server-setup branch September 28, 2025 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Write & setup whole BE using typescript

1 participant