Make sure you have the following installed on your system:
To install all dependencies for the project using the package-lock.json file, run the following command in each relevant directory:
npm ciThis ensures that all dependencies are installed exactly as specified in package-lock.json, avoiding version mismatches.
If your frontend is in the veshackit folder, navigate to it:
cd veshackitRun the following command to start the frontend:
npm startThis will start the development server, usually accessible at http://localhost:3000/.
If your backend is located in the project root folder, navigate there:
cd .. # Move to the root directory (if not already there)Run the following command to start the backend:
node server.jsThis will start the backend server, usually accessible at http://localhost:5000/ (depending on your configuration).
-
If you face permission issues while installing dependencies, try running
npm ciwithsudo(Linux/macOS users):sudo npm ci
-
If
npm startdoes not work, try running:npm install
and then retry
npm start. -
Ensure that both the frontend and backend are running simultaneously for proper functionality.
-
Port conflicts: If the default ports are in use, change them in the respective configurations (
package.jsonfor frontend andserver.jsfor backend). -
Dependency issues: Delete
node_modulesandpackage-lock.json, then run:npm install