Mindful is a Flutter-based mobile application that provides users with a virtual therapist chatbot. The app utilizes OpenAI and OpenRouter for chat completions, offering a compassionate and insightful conversational experience with Dr. Rachel Kim, a virtual therapist.
- Real-time chat interface with a virtual therapist
- Personalized responses based on user input
- Integration with OpenAI and OpenRouter for advanced language processing
- Cross-platform support for iOS and Android
- Git for Windows [https://gitforwindows.org/]
- Flutter SDK [https://docs.flutter.dev/get-started/]
- Android Studio [https://developer.android.com/studio]
- Xcode [https://developer.apple.com/xcode/]
- Visual Studio Code (recommended) [https://code.visualstudio.com/download]
- Download the Flutter SDK from the official Flutter website. [https://storage.googleapis.com/flutter_infra_release/releases/stable/windows/flutter_windows_3.22.3-stable.zip]
- Extract the downloaded zip file to a desired location (e.g.,
C:\flutter
on Windows or~/flutter
on Mac). - Add the Flutter
bin
directory to your PATH:- On Windows: Edit the system environment variables and add
C:\flutter\bin
to the PATH. - On Mac: Add
export PATH="$PATH:[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin"
to your~/.bash_profile
or~/.zshrc
file.
- On Windows: Edit the system environment variables and add
- Run
flutter doctor
in the terminal to check for any missing dependencies.
- Download and install Android Studio from the official website.
- During installation, make sure to select "Android SDK", "Android SDK Platform", and "Android Virtual Device".
- Launch Android Studio and go to Tools > SDK Manager.
- In the SDK Platforms tab, select the latest Android SDK version.
- In the SDK Tools tab, select "Android SDK Build-Tools", "Android Emulator", and "Android SDK Platform-Tools".
- Click "Apply" to install the selected components.
- Install Xcode from the Mac App Store.
- Open Xcode and agree to the license agreement.
- Install additional required components if prompted.
- Run
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
in the terminal to configure the Xcode command-line tools. - Run
sudo xcodebuild -license
to agree to the Xcode and iOS license agreements.
-
Clean the project: flutter clean
-
Get dependencies: flutter pub get
-
Run the project:
-
For iOS Simulator: flutter run -d ios
-
For Android Emulator: flutter run -d android
-
For connected device or browser: flutter run
- Build the release version:
-
For Android: flutter build apk
-
For iOS: flutter build ios
-
Remember to set up your .env
file with the necessary API keys before running the project: OPENAI_API_KEY=your_openai_api_key_here