Running GIRAF¶
Preliminaries¶
- Clone both
https://github.com:aau-giraf/weekplanner.git
andhttps://github.com:aau-giraf/web-api.git
as mentioned in "Environment Setup"
Step 1. Running the Web-API¶
Remember to be in the GirafAPI
directory when running commands!
- Open
appsettings.Development.json
in the clonedweb-api/GirafAPI
directory from earlier and changepassword
to what you selected when installing MariaDB - Navigate to the cloned
web-api/GirafAPI
directory from earlier, either in Terminal (macOS/Linux) or PowerShell (Windows), and run: dotnet restore
dotnet ef database update
dotnet run --sample-data
Step 2. iOS Simulator¶
- Open Simulator app (CMD + Space to search for it)
- Navigate to the
weekplanner
directory, that you cloned - Run
cp .env.example .env
in your Terminal - Run
flutter pub get
in your Terminal - Run
flutter run
in your Terminal
Step 2. Android Simulator¶
If you have an old version of Android Studio, you need to update the SDK toolchain etc. to the newest versions before proceeding
- Open the
weekplanner
directory that you cloned - Make a copy of
.env.example
, and rename the copy to.env
- If using Docker etc., edit the
.env
file to reflect this - Open Android Studio
- Select the pre-installed Android emulator near the top-right corner, or create a new device in Tools > Device Manager
- Select the
main.dart
runtime and press Run
Last update: September 18, 2024