Full-stack Dart

Getting started #

dart pub global activate serverpod_cli
serverpod create property_log
cd property_log

Run this in a terminal to start the back-end server.

cd property_log_server
docker compose up --build -d
dart bin/main.dart --apply-migrations

And this in another to execute code generation as files change.

cd property_log_server
serverpod generate --watch

First endpoint #

property_log_server/lib/src/properties/property.spy.yaml

### A user can manage logs for one or more properties
class: Property
table: properties
fields:
  ### ID of the owner
  owner: String
  ### Name of Property
  name: String
cd property_log_server
serverpod generate
serverpod create-migration

Test the app #

cd property_log/property_log_server
docker compose up --build --detach
dart bin/main.dart --apply-migrations

Authentication #

Follow Getting Started with Serverpod: Authentication — Part 1.