Overview
Currently, our project is set up with a single package.json file managing dependencies for both the frontend and backend. This setup can cause unnecessary complexity when managing dependencies that are only needed on one side of the stack (e.g., frontend-specific or backend-specific packages).
Action Items
- Create a separate
package.json for the frontend.
- Create a separate
package.json for the backend.
- Update npm scripts and configurations accordingly.
- Ensure compatibility with the existing MERN stack setup.
Instructions
- Create a
package.json file for the frontend, including all frontend-related dependencies (e.g., React, Vite).
- Create a
package.json file for the backend, including backend-related dependencies (e.g., Express, Mongoose).
- Adjust project folder structure if necessary to support separate package files.
- Test that both frontend and backend run correctly with their individual
package.json configurations.
Checks
Additional Information
I’m attaching a screenshot of the current package.json file, including the current dependencies and devDependencies, for reference.

Overview
Currently, our project is set up with a single
package.jsonfile managing dependencies for both the frontend and backend. This setup can cause unnecessary complexity when managing dependencies that are only needed on one side of the stack (e.g., frontend-specific or backend-specific packages).Action Items
package.jsonfor the frontend.package.jsonfor the backend.Instructions
package.jsonfile for the frontend, including all frontend-related dependencies (e.g., React, Vite).package.jsonfile for the backend, including backend-related dependencies (e.g., Express, Mongoose).package.jsonconfigurations.Checks
package.json.package.json.Additional Information
I’m attaching a screenshot of the current
package.jsonfile, including the currentdependenciesanddevDependencies, for reference.