You can read this short docs by know more about project structure. More comments are presents in core files.
- Clone repository into local folder.
- Use pub to get packages.
- Open an emulator or connect your device to pc. (Can execute in web mode.)
- Open a shell and write flutter run and select your device.
- Go to https://platform.openai.com/ web site.
- Login, and go to api keys.
- Generate the Api Key and paste into the input of flutter app. (The app must be running).
- Once you place the API Key just send a message like "Hey!". The Ia is prepared for get a conversation context.
This app was made with SOLID principles and Cubit state managment.
Directory Structure: Overview:
-
core: Represents the logical methods that i use for manage the state and get data from the frontend.
-
presentation: Contains the user interface,split on views and widgets.
Complete Structure
-lib
- core
- bloc
- repository
- services
- types
- core.dart
- presentation
- views
- widgets
- presentation.dart
- gpt_test.dart
- main.dart