Skip to content

The-Vegapunks/dermai_flutter

Repository files navigation

DermAI - Documentation

DermAI is an innovative healthcare application designed to connect patients with dermatologists and provide AI-driven image classification for skin conditions. The app combines advanced machine learning algorithms with telemedicine to offer instant preliminary diagnoses, health guidance through a chatbot, and seamless appointment scheduling with dermatologists. It also supports secure video consultations, making dermatological care accessible from anywhere.

Features

Contributors

Prerequisites

Before you can build and run the DermAI app, ensure you have the following installed on your development environment:

AI Server Setup

The AI image classification server is a crucial component of DermAI. Here's how to set it up:

  1. Clone the AI Server Repository:
    Clone the AI server repository from GitHub:

    git clone https://github.com/The-Vegapunks/dermai.git
    cd dermai
  2. Install Dependencies:
    Install the necessary Python packages:

    pip install -r requirements.txt
  3. Run the AI Server:
    Start the Flask server to serve the AI model:

    flask run
  4. Expose the AI Server Using Ngrok:
    Use Ngrok to expose the Flask server to the internet:

    ngrok http 5000

    Copy the generated public URL (e.g., https://xxxxxx.ngrok.io) and save it for later use.

Setting Up the Flutter App

  1. Clone the DermAI Repository:
    Clone the DermAI Flutter project:

    git clone https://github.com/The-Vegapunks/dermai_flutter.git
    cd dermai_flutter
  2. Create a .env File:
    In the root directory of the DermAI Flutter project, create a .env file with the following content:

    SUPERBASEURL=<Your Supabase URL>
    SUPABASEANONKEY=<Your Supabase Anon Key>
    GEMINIKEY=<Your Gemini API Key>
    DISEASECLASSIFIERURL=<Ngrok URL from AI Server Setup>
    STREAMAPIKEY=<Your Stream API Key>
    
  3. Configure Supabase:
    Set up your Supabase project according to your needs. You can define your database schema using the model classes provided in the project.

  4. Generate Environment Configuration:
    Run the following command to generate files that include your environment variables:

    dart run build_runner build
  5. Build the App:
    Use Flutter to build the app for Android or iOS:

    • For Android:
      flutter build apk
    • For iOS:
      flutter build ios
  6. Run the App:
    Run the app on an emulator or connected device:

    flutter run

Conclusion

You have successfully set up and run the DermAI application. The app is now ready to provide dermatological care powered by AI and telemedicine. Please refer to the project documentation or contact the development team if you encounter any issues.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages