The repo shows how you can build cross platform applications with Flutter , fastAPI and the Databricks APIs. Specifically, we use Databricks Serverless Serving capability to demonstrate the features of this web/desktop application.
The web applications requires the intermediary - i.e. FASTAPI service to collect and send requests out to databricks while the desktop application does not. You can choose to try out the application in either way or both.
Click here for a Quick Cross-Platform Demo
For reference,here's the complete architecture which assumes that you'd need the backend service
To reproduce demo:
- Install Flutter locally
- On Mac. Go through the install guide until
flutter doctor
to ensure flutter is set up properly.
- On Mac. Go through the install guide until
- Clone repo to your machine
- From the terminal run:
flutter run -d chrome
- Make sure the backend service is running. If not, close the repo & follow the steps on the repo's readme.
- Enjoy the demo!
Note:
This demo uses the following datasets to make recommendations
a. Halloween Costume recommendations based on this dataset on kaggle.
b. Horror movie recommendations based on this dataset on kaggle.
To build and deploy: This is an optional step for anyone interested in deploying the app. Since the app uses heavy animations & elaborate state management, it's best to deploy it on a separate VM following the standard flutter web deploy recommendations.
- Build the release package: Run
flutter build web
on the terminal. This will generate the js and the files needed to host the app on your server. - Move files on the
build/web
folder to your server - Run
dhttpd
or launch a web server targetting this folder on your server. See here in the official flutter docs.