Skip to content

arulkumarann/heart-disease-prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heart Disease Prediction App

This is a simple web application for predicting heart disease using FastAPI for the backend and MongoDB for data storage.

Features

  • Collects user input for heart disease prediction.
  • Stores user data in MongoDB.
  • Provides predictions based on the user input.

Requirements

  • Python 3.6+
  • MongoDB

Installation

  1. Clone the repository:

    git clone https://github.com/arul-5/heart-disease-prediction.git

Project Setup

  1. Navigate to the project directory:

    cd heart-disease-prediction
  2. Create a virtual environment (optional but recommended):

    python -m venv venv
  3. Activate the virtual environment:

    • On Windows:

      venv\Scripts\activate
    • On macOS and Linux:

      source venv/bin/activate
  4. Install dependencies:

    pip install -r requirements.txt
  5. Create a .env file in the project root directory and add your MongoDB connection URL:

    DATABASE_URL=mongodb://username:password@host:port/database_name

    Replace username, password, host, port, and database_name with your MongoDB connection details.

Running the Application

  1. Start the FastAPI server:

    uvicorn main:app --reload

    The server will start running on http://localhost:8000.

  2. Open your web browser and navigate to http://localhost:8000/docs to access the FastAPI autogenerated documentation.

  3. Use the provided forms in the documentation to interact with the API, fill out the form, and submit to see the prediction.

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue for bug fixes, feature requests, or improvements.

About

heart disease predictor - FastAPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published