steps to get started:
- install flutter Sdk: https://docs.flutter.dev/get-started/install/macos
- flutter run -d macos
This default configuration should authenticate and connect to an API running in the cloud.
- run backend app from gffft-backend project
- get your local IP address.
- on osx using ifconfig, it's the 4 numbers after inet
- '192.168.0.199' in the below example
> ifconfig
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=400<CHANNEL_IO>
ether 14:7d:da:d6:3f:73
inet6 fe80::10e7:b5f2:272a:5adc%en0 prefixlen 64 secured scopeid 0x6
inet 192.168.0.199 netmask 0xffffff00 broadcast 192.168.0.255
- using
.env.sample
, paste into the file.env
and edit to use your IP address.
127.0.0.1
will not work
- tell git to not commit the changes you just made to
.env
:
git update-index –-assume-unchanged .env
- run the app same as before:
flutter run -d macos
- model classes are annotated with @JsonSerializable and toJson()/fromJson() stubbed out
to run the generation:
flutter packages pub run build_runner build --delete-conflicting-outputs
with a watcher:
flutter pub run build_runner watch