We're using this approach to develop the Flutter app for Invoice Ninja.
git clone git@github.com:hillelcoren/flutter-redux-starter.git <application> && cd <application>
./starter.sh init <company> <application> <url>
./starter.sh make <application> <module> <fields>
For example:
git clone git@github.com:hillelcoren/flutter-redux-starter.git hacker_news && cd hacker_news
./starter.sh init hacker_news articles api.hackerwebapp.com
./starter.sh make articles article title,url
# Change the route on line 20 of lib/data/repositories/article_repository.dart from /articles to /news
flutter run
Note: on macOS sed leaves behind backup files ending with -e
, you can use this command to delete the files:
find . -name "*-e" -type f -delete
The architecture is based off these two projects: