Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 993 Bytes

README.md

File metadata and controls

43 lines (26 loc) · 993 Bytes

TodoMVC

A TodoMVC with Flutter and PostgREST as backend server with Postgres.

Requirements

  • Flutter >= 3.10.x

JSON decoder/encoder generation

Configuration is build.yaml

flutter pub run build_runner build --delete-conflicting-outputs

Run Web

The app defaults to Flutter Web.

flutter run -d chrome

The test logins can be found in the development seed file

Testing Android, iOS with ngrok

For Andorid, iOS testing the _isApp flag needs to flipped in lib/api.dart.

To test the mobile app, postgrest has to be configured to run on a local network instead of the default localhost:3000.

Alternatively, ngrok can be used to proxy traffic from mobile app to postgrest running locally on localhost:3000.

After having started postgrest via server/pgrest.sh start ngrok:

ngrok http 3000

Paste ngrok address into lib/api.dart's variable _baseUrlApp.