Skip to content

dolthub/dolt-flutter-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dolt_flutter_example

An example Flutter counter application that connects to a Dolt database. Includes branch and pull request workflows.

Learn more about this application in this blog.

Screenshot 2024-09-19 at 3 51 17 PM

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:

For help getting started with Flutter development, view the online documentation, 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.

First create a new .env file in the root of this application. It must have the following fields:

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.