Running GIRAF¶
Preliminaries¶
- Clone both
https://github.com:aau-giraf/weekplanner.gitandhttps://github.com:aau-giraf/web-api.gitas mentioned in "Environment Setup"
Step 1. Running the Web-API¶
Remember to be in the GirafAPI directory when running commands!
- Open
appsettings.Development.jsonin the clonedweb-api/GirafAPIdirectory from earlier and changepasswordto what you selected when installing MariaDB - Navigate to the cloned
web-api/GirafAPIdirectory from earlier, either in Terminal (macOS/Linux) or PowerShell (Windows), and run: dotnet restoredotnet ef database updatedotnet run --sample-data
Step 2. iOS Simulator¶
- Open Simulator app (CMD + Space to search for it)
- Navigate to the
weekplannerdirectory, that you cloned - Run
cp .env.example .envin your Terminal - Run
flutter pub getin your Terminal - Run
flutter runin 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
weekplannerdirectory that you cloned - Make a copy of
.env.example, and rename the copy to.env - If using Docker etc., edit the
.envfile 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.dartruntime and press Run
Last update: October 27, 2025