Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dolthub/dolt-flutter-example
Getting started with Dolt and Flutter
https://github.com/dolthub/dolt-flutter-example
desktop-app dolt flutter flutter-examples
Last synced: 3 days ago
JSON representation
Getting started with Dolt and Flutter
- Host: GitHub
- URL: https://github.com/dolthub/dolt-flutter-example
- Owner: dolthub
- Created: 2024-09-17T19:12:22.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-19T23:00:51.000Z (3 months ago)
- Last Synced: 2024-12-31T05:46:18.069Z (3 days ago)
- Topics: desktop-app, dolt, flutter, flutter-examples
- Language: C++
- Homepage: https://www.dolthub.com/blog/2024-09-20-flutter-and-dolt
- Size: 280 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dolt_flutter_example
An example Flutter counter application that connects to a [Dolt](https://www.doltdb.com) database.
Includes branch and pull request workflows.Learn more about this application in [this blog](https://www.dolthub.com/blog/2024-09-20-flutter-and-dolt).
## Getting Started
This project is a starting point for a Flutter - Dolt application.
A few resources to get you started if this is your first Flutter project:
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)For help getting started with Flutter development, view the
[online documentation](https://docs.flutter.dev/), which offers tutorials,
samples, guidance on mobile development, and a full API reference.## Connecting to Dolt
In order to connect to a Dolt database, you must add your database connectivity
information. This is done using a [`.env` file](https://pub.dev/packages/flutter_dotenv).First create a new `.env` file in the root of this application. It must have the following
fields:```shell
DB_HOST="my.host.name"
DB_PORT=3306
DB_USER="root"
DB_PASS="xxxxxxxxxxxxxxxxxx"
DB_NAME="mydb"
```Then when you run this application, you should see the counter and branches from
your Dolt database populated on the home screen.