VitalWave is a web application designed to assist users in finding suitable hospitals based on various personal and medical criteria, including age, sex, location, underlying health conditions, symptoms, and preferred time slots. The application integrates Google Maps to provide a seamless location-based search experience.
-
Dynamic User Input Form:
- Collects details such as age, sex, location, underlying health conditions, symptoms, and preferred time slots.
- Validates inputs for accuracy and relevance.
-
Google Maps Integration:
- Displays nearby hospitals based on user location.
- Provides interactive map markers with information windows for each hospital.
-
Server-Side Processing:
- Uses Node.js and Express to handle API requests and process data.
- Parses CSV files to fetch and sort hospital data according to user requirements.
-
Machine Learning:
- Employs a Naive Bayes classifier to assess the urgency of the user's condition (emergency or non-emergency).
- React.js
- Bootstrap for styling
react-google-autocomplete
for location inputreact-google-maps/api
for map rendering
- Node.js
- Express
- Morgan for logging
- Helmet for security enhancements
- Cors for handling cross-origin requests
- Body-parser for parsing incoming request bodies
- Natural (for Naive Bayes classification)
-
Clone the repository:
git clone https://github.com/yourusername/vitalwave.git
-
Navigate to the project directory:
cd vitalwave
-
Install dependencies for the backend:
npm install
-
Navigate to the frontend directory:
cd my-app
-
Install dependencies for the frontend:
npm install
-
Start the backend server:
node server.js
-
Start the frontend server:
npm start
- Open the application in your browser at
http://localhost:3000
. - Follow the on-screen instructions to input your details.
- View the list of recommended hospitals on the map.
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch-name
- Make your changes and commit them:
git commit -m 'Add some feature'
- Push to the branch:
git push origin feature-branch-name
- Open a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Google Maps API for location services
- Bootstrap for CSS framework
- Natural library for machine learning classification
For any inquiries or feedback, please contact:
- Idrak Islam - playbox8g@gmail.com
- Kiarash Vosough - kiarashvos@gmail.com
- Muhammad Hamza Sohail - hamza.sohail29@gmail.com
- Rayyan Ahmed - rayyanahmed021@hotmail.com
This is a simple React App (Next.js) with a Node.js API running in the background.
You will need Node.js and npm installed on your system.
-
Start the API (run the below commands from the root folder):
cd api npm install npm run dev
-
On a different terminal, start the Next.js app (run the below commands from the root folder):
cd my-app npm install npm run start:dev
-
Once both servers are running simultaneously on two different terminals, visiting
http://localhost:3000
should load the application.