Skip to content

🐞big fix: removing node_modules from backend and updated .gitignore - #219

Open
ayushpandey101 wants to merge 1 commit into
Skrishna0703:mainfrom
ayushpandey101:node_update
Open

🐞big fix: removing node_modules from backend and updated .gitignore#219
ayushpandey101 wants to merge 1 commit into
Skrishna0703:mainfrom
ayushpandey101:node_update

Conversation

@ayushpandey101

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

The node_modules folder in the backend was not included in .gitignore, causing unnecessary Git tracking of dependency files. This leads to:

  • Frequent unwanted commits/changes in node_modules
  • Merge conflicts during collaboration
  • Bloated repository size
  • Inconsistent environments across machines

By removing node_modules from version control and adding it to .gitignore, we ensure:
✅ Cleaner commits
✅ Smaller repo size
✅ Consistent dependency installation via package.json + npm install
✅ Better team collaboration & Git hygiene

What changes are included in this PR?

Removed existing node_modules/ folder from Git tracking (if previously committed)
Added /node_modules/ to .gitignore in the backend root directory
Verified no other critical ignores were missing (optional: added common ones like .env, *.log if not present)

"⚠️ Note: Developers must run npm install after pulling this change to reinstall dependencies locally."

Are these changes tested?

✅ Yes — manually verified:

  • Ran git status → confirms node_modules/ is no longer tracked
  • Cloned repo fresh → ran npm install → confirmed dependencies install correctly
  • Checked .gitignore syntax — valid and working

Are there any user-facing changes?

🚫 No.
This is a developer/Git workflow improvement. End users or app functionality are unaffected.

Screenshots (if Applicable)

📸 Not applicable — this is a backend/Git configuration change with no UI impact.

✅ Ready to merge.
Improves codebase maintainability and prevents future Git headaches.

@github-actions

github-actions Bot commented Oct 3, 2025

Copy link
Copy Markdown

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@ayushpandey101

Copy link
Copy Markdown
Contributor Author

Hey @Skrishna0703, please review and merge the pr .

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.

Node_modules in Backend

1 participant