Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 1.34 KB

README.md

File metadata and controls

49 lines (30 loc) · 1.34 KB

gpt_flutter

A simple chatbot integrated with OpenAI's magic

Getting Started

Make sure you have done installing all the prerequisites for flutter development. If not, you can follow the instructions here.

Installing dependencies

All the dependencies are listed in the pubspec.yaml file. You can install them by running the following command your terminal:

flutter pub get

Setting up API keys

Get your OpenAI api key here and set it in the lib/env/.env file.

OPENAI_API_KEY=your_key

Generating files

Run the build runner to generate the necessary files:

flutter pub run build_runner build --delete-conflicting-outputs

Running the app

You can run the app on an emulator or a physical device by executing the following command in your terminal. Make sure to mention the device id if you have multiple devices connected.:

flutter run -d <device_id>

Building the app

You can build the app for any platform mentioned here by running the following command in your terminal:

flutter build <platform>

Make sure to follow the instructions for each platform mentioned in the flutter documentation.