Skip to content

Demo App for Presentation on Managing State with Bloc in a Serverpod Full Stack App

Notifications You must be signed in to change notification settings

BenAuerDev/serverpod_bloc_demo_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lunch Spot Voting

This is a demo app for my talk at the Flutter Holland Meetup on July 27th in Amsterdam.

It features:

  • Basic Serverpod Email Authentication
  • LunchSpotVoting
    1. Propose LunchSpot (Save entry in DB)
    2. Get LunchSpots (Read from DB)
    3. Vote for Lunchspot (Update entry in DB)

For everyone who couldn't attend you can find the tutorial here.

bloc_demo_video.mp4

In case you haven't already install the following:

Install Flutter and Dart.

You can follow the instructions on the official Flutter website: Flutter Installation Guide

Install Docker.

You can follow the instructions on the official Docker website: Docker Installation Guide

Install Serverpod CLI

Once you have Flutter and Docker installed and configured, open up a terminal and install Serverpod by running:

dart pub global activate serverpod_cli

Clone Project

To clone run:

git clone "https://github.com/BenAuerDev/bloc_demo.git"

Server Setup

Create /bloc_demo/bloc_demo_server/config/passwords.yaml and add the development passwords as in docker-compose.yaml:

development:
  database: 'SZ0F9XiNnUQTYRTxHTmQYPRiCHhyu4hO'
  redis: 'cgc1yUSXgYozFhHNU86hmgLN2Z4oFIOb'

Navigate to the server directory:

cd ./bloc_demo/bloc_demo_server/

Make sure you have Docker running and start up the database:

docker-compose up --build --detach

Run the server and apply the migrations to your (fresh) database:

dart bin/main.dart --apply-migrations

If your database already has all the changes you just run:

dart bin/main.dart

Flutter

then all you need to do is navigate to bloc_demo_flutter and run:

flutter run

About

Demo App for Presentation on Managing State with Bloc in a Serverpod Full Stack App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published