You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Frontend dependencies are isolated in their own package.json.
Backend dependencies are isolated in their own package.json.
Scripts for starting both frontend and backend work as expected.
Additional Information
I’m attaching a screenshot of the current package.json file, including the current dependencies and devDependencies, for reference.
The text was updated successfully, but these errors were encountered:
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
package.json
for the frontend.package.json
for the backend.Instructions
package.json
file for the frontend, including all frontend-related dependencies (e.g., React, Vite).package.json
file for the backend, including backend-related dependencies (e.g., Express, Mongoose).package.json
configurations.Checks
package.json
.package.json
.Additional Information
I’m attaching a screenshot of the current
package.json
file, including the currentdependencies
anddevDependencies
, for reference.The text was updated successfully, but these errors were encountered: