- Clone project.
- Add
.envfile toflutter_app/folder. AddapiKey='<yourAPIKey>'with a key from ChatGPT's API. cdtoflutter_app/and runflutter build web.cdtoflutter_app/build/web/and run a local server usinghttp-serveror similar- Head to
localhost:8080in a browser.
Running flutter build web populates the flutter_app/build/web/ directory with a generated JavaScript file, and other assets. Our non-Flutter index.html calls app.html from flutter_app/build/web, which in turn uses the generated JS file as its script source.