diff --git a/Mobile/.gitignore b/Mobile/.gitignore index e02e980..a97687b 100644 --- a/Mobile/.gitignore +++ b/Mobile/.gitignore @@ -41,3 +41,5 @@ app.*.map.json /android/app/debug /android/app/profile /android/app/release + +environment.json diff --git a/Mobile/.run/main.dart.run.xml b/Mobile/.run/main.dart.run.xml new file mode 100644 index 0000000..3b596ec --- /dev/null +++ b/Mobile/.run/main.dart.run.xml @@ -0,0 +1,7 @@ + + + + \ No newline at end of file diff --git a/Mobile/.vscode/launch.json b/Mobile/.vscode/launch.json new file mode 100644 index 0000000..0856f2a --- /dev/null +++ b/Mobile/.vscode/launch.json @@ -0,0 +1,15 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Launch", + "request": "launch", + "type": "dart", + "program": "lib/main.dart", + "args": [ + "--dart-define-from-file", + "environment.json" + ] + } + ] +} diff --git a/Mobile/README.md b/Mobile/README.md new file mode 100644 index 0000000..0c5c4d6 --- /dev/null +++ b/Mobile/README.md @@ -0,0 +1,6 @@ +# SkanTravels frontend + +### Running + +- Copy `environment.example.json` to `environment.json` and fill out the values +- Run `flutter run --dart-define-from-file environment.json` \ No newline at end of file diff --git a/Mobile/environment.example.json b/Mobile/environment.example.json new file mode 100644 index 0000000..7c84110 --- /dev/null +++ b/Mobile/environment.example.json @@ -0,0 +1,4 @@ +{ + "AUTH_SERVICE_HOST": "http://localhost:5287", + "APP_SERVICE_HOST": "http://localhost:8080" +} diff --git a/Mobile/readme.md b/Mobile/readme.md deleted file mode 100644 index 7b01285..0000000 --- a/Mobile/readme.md +++ /dev/null @@ -1,16 +0,0 @@ -# mobile - -A new Flutter project. - -## Getting Started - -This project is a starting point for a Flutter application. - -A few resources to get you started if this is your first Flutter project: - -- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) -- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) - -For help getting started with Flutter development, view the -[online documentation](https://docs.flutter.dev/), which offers tutorials, -samples, guidance on mobile development, and a full API reference.