Skip to content

Lopez15-Hub/gpt-test-flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPT Flutter test

Getting Started

You can read this short docs by know more about project structure. More comments are presents in core files.

How to run the app

  1. Clone repository into local folder.
  2. Use pub to get packages.
  3. Open an emulator or connect your device to pc. (Can execute in web mode.)
  4. Open a shell and write flutter run and select your device.

Get the OpenAi Key and use the app

  1. Go to https://platform.openai.com/ web site.
  2. Login, and go to api keys.
  3. Generate the Api Key and paste into the input of flutter app. (The app must be running).
  4. Once you place the API Key just send a message like "Hey!". The Ia is prepared for get a conversation context.

Project Architecture

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published