This is divided into two parts the frontend and backend. Server folder is created using Node.js,Express,Moongose while the client folder is created using React.js
-
Open your terminal and navigate to the directory where you want to clone the repository.
-
Run the following command to clone the repository:
git clone <Repo URL>
-
Open the terminal in the downloaded folder and run command:
cd server
-
When in backend folder run command:
npm install
-
Open the terminal in the downloaded folder and run command:
cd client
-
When in backend folder run command:
npm install
-
Open the terminal in the downloaded folder and run command:
cd server
-
When in backend folder either run command:
nodemon app.js
-
You can also use:
npm start
-
Once the Server is active, feel free to use Postman or any other service for testing using the following endpoints:
"http://localhost:5000/form/submit" : submits data along with file
"http://localhost:5000/form/records" : gets records of all patient
"http://localhost:5000/form/soundfile/:id'" : gives you recording of the patient of particular id
Note: Api documenteation is specifiend inside backend folder.
Note: It uses local port 5000
-
Open the terminal in the downloaded folder and run command:
cd client
-
When in frontenf folder run command:
npm install
-
After all dependencies are installed, run:
npm start
Note: It uses local port 3000
Note: Make sure server is live while using the react app. Incase any issue arises feel free to contact me.