To quickly set up and run the application, follow these steps:
- Run the shell script
sh startWeb.sh
in 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 -v
in your terminal. -
Run
npm install
to install the necessary dependencies. -
Navigate to the backend folder using
cd backend
and runnpm install
to install the backend dependencies. -
To start the application, run
nodemon start
while inside the backend folder, and runnpm start
in the root directory.
To start the front-end, perform the following steps:
-
Run
npm install
to load all the required modules. -
Execute
npm run
to run the test version of the website.
To start the backend, follow these steps:
-
Navigate to the backend folder using
cd backend
from 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_modules
folder. -
Run
npm install
to reinstall all the required modules.
By following these instructions, you should be able to quickly set up and run the application.