-
Clone the git repository
git clone https://github.com/partio-scout/retkipaikka-frontend-flutter.git
-
Install Flutter and Visual Studio Code and recommended extensions for VS Code
- Flutter: https://docs.flutter.dev/get-started/install/windows
- Visual Studio Code: https://code.visualstudio.com/
- Dart extension
- Flutter extension
- Open the cloned repository in VS Code
- Run
flutter pub get
to install needed dependencies - Press ctrl+shift+p in VS Code to open the command palette and type "flutter: select device" and select Chrome
- You should be able to run the project now by opening main.dart and pressing the run button in top right corner
- Use develop-branch if you need to make changes
- On default the app will use heroku backend, you can change the baseurl in constants.dart
- Run command in project root
flutter build web --web-renderer html --base-href /retkipaikka-frontend-flutter/
- Flutter will build the files to build/web directory,
- Move files from this folder and assets and icons folder to /docs folder