To quickly set up and run the application, follow these steps:
- Run the shell script
sh startWeb.shin the root directory. This script will install npm and start both the front-end and back-end.
-
Verify that Node.js is installed by running
node -vin your terminal. -
Run
npm installto install the necessary dependencies. -
Navigate to the backend folder using
cd backendand runnpm installto install the backend dependencies. -
To start the application, run
nodemon startwhile inside the backend folder, and runnpm startin the root directory.
To start the front-end, perform the following steps:
-
Run
npm installto load all the required modules. -
Execute
npm runto run the test version of the website.
To start the backend, follow these steps:
-
Navigate to the backend folder using
cd backendfrom the project's home directory. -
Start the server by running
nodemon server.
Please ensure that both the front-end and back-end are running in order for the backend to communicate with the frontend.
If you encounter module conflicts, you can reinstall all the modules by following these steps:
-
Remove the
node_modulesfolder. -
Run
npm installto reinstall all the required modules.
By following these instructions, you should be able to quickly set up and run the application.