Skip to content

mwk24/openai-flutter-firebase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Flutter app that talks to OpenAI.

See demo here (message me for access)

Three parts to this:

  1. Firebase Cloud Firestore database
  2. Firebase Cloud Function that calls OpenAI (/firebase/functions)
  3. Simple Flutter app (/flutter-app)

Important: This doesn't include auth, so don't make it public without being approved.

Setup process: (for flutter web app)

  1. Create a firebase project with Cloud Firestore, Cloud Functions (and Hosting if you want to host the web app on firebase)
  2. Create Firestore database with structure:
    • conversations
    • settings/openai_config (populate document with values for: preamble, first_question)
  3. Add your OpenAI API key to firebase/functions/index.js
  4. Deploy cloud functions ("flutter deploy --only functions" from within firebase directory)
  5. Build flutter app (flutter build web). Can also build for iOS and Android
  6. Host web app Guide

To host on firebase:
  1. Move/copy flutter-app/build/web into firebase directory
  2. Setup firebase hosting
  3. firebase deploy --only hosting

Note: if you host elsewhere, you will need to use a slightly different setup in the app Guide

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published