This is a React and Flask-based web application for collecting the blood cells dataset with the assistance of AI.
Before you begin, ensure you have the following installed:
- Node.js (v16 or higher): Download Node.js
- Python (v3.8 or higher): Download Python
- Git: Download Git
- VSCode: Download VSCode
Follow the steps below to download and set up the project.
Open vscode in your desired folder and then open the termianl with Ctrl+J and type the folling command:
git clone https://github.com/MuhammadAffanWahid/BloodCancer-App.gitNavigate to the BloodCancer-App directory and install the dependencies:
cd BloodCancer-App
npm installThis will install all the Node.js packages listed in the package.json file.
Navigate to the backend directory and set up a virtual environment for Python:
cd src/backend
python -m venv venvActivate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
Install the Python dependencies:
pip install -r requirements.txtThis project interacts with Google APIs. You'll need to set up credentials for the Google Cloud APIs and add them to your backend environment.
- Go to the Google Cloud Console.
- Create a project, enable the required APIs (e.g., Google Drive API), and generate OAuth 2.0 credentials.
- Download the
credentials.jsonfile and place it in the backend directory.
In the backend directory, create a .env file with the following structure:
GOOGLE_CLIENT_ID=<Your-Google-Client-ID>
GOOGLE_CLIENT_SECRET=<Your-Google-Client-Secret>
FLASK_APP=app.py
FLASK_ENV=developmentReplace <Your-Google-Client-ID> and <Your-Google-Client-Secret> with your actual credentials.
In a new terminal window, navigate to the BloodCancer-App directory and run:
npm startThis will start the React development server. The frontend will be available on http://localhost:3000/.
From the backend directory, ensure your virtual environment is activated, then start the Flask server:
python3 server.pyBy default, the backend will run on http://127.0.0.1:5000/.
Open your browser and go to http://localhost:3000/ to view the app.
- Frontend: React, html2canvas, jsPDF
- Backend: Flask, pandas, Google APIs
- Other: Axios for API requests, Tailwind CSS for styling, Webpack for bundling
We welcome contributions! Please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Commit your changes.
- Submit a pull request.
This project is licensed under the MIT License.