Windows Setup Guide¶
Be mindful that your computer needs to support virtualisation in order to run the Android Simulator!
Step 1. Install OpenJDK (or similar)¶
- Download OpenJDK
- Run through the installer
Step 2: Install Flutter¶
- Create a folder where you want to install Flutter (e.g.,
C:\dev
). - Download the Flutter SDK
-
Extract the downloaded zip file into the folder you created (e.g.,
C:\dev\flutter
). -
Add Flutter to your PATH:
-
Open the Start menu and search for "Environment Variables"
- Click on "Edit the system environment variables"
- Click the "Environment Variables" button
- Under "System variables", find the "Path" variable and click "Edit"
- Click "New" and add the full path to the
flutter\bin
directory (e.g.,C:\dev\flutter\bin
) -
Click "OK" to save the changes
-
Open a new PowerShell window and verify the installation:
1 |
|
Step 3: Set up Android Studio¶
- Download Android Studio
- Run the installer and follow the installation wizard.
- During installation, ensure that the "Android Virtual Device" option is selected.
- Once installed, open Android Studio.
- Go to File > Settings > Plugins (on Windows)
- Search for and install the Flutter and Dart plugins
- Restart Android Studio to activate the plugins
- Go into Settings > Languages & Frameworks > Dart and set the relevant path to the Dart SDK, e.g.
C:\dev\flutter\bin\cache\dart-sdk
, and enable theweekplanner
module
Step 4. Installing MariaDB¶
If you have MySQL or similar installed, you don't need to follow this step. Postgres doesn't count.
- Download MariaDB
- Select the latest stable version for Windows and choose the appropriate package (MSI) for your system architecture (32-bit or 64-bit)
- Run the wizard and set a root password you'll be able to remember later.
- Select HeidiSQL and configure other options as needed (default settings are usually fine).
- Open HeidiSQL and log in with the password you chose earlier
- Right-click in the left panel, and choose New > Database and make a database called
giraf
Step 5. Installing .NET with Entity Framework¶
- Download the .NET 8 SDK installer for Windows
- Run the installer and follow the prompts
- Run the following command:
dotnet --version
– you should see the installed .NET version (8.x.x) - Run the following command:
dotnet tool install --global dotnet-ef
You can then run dotnet ef
to verify the installation.
Running GIRAF¶
Refer to this guide
Troubleshooting¶
If you encounter any issues:
- Ensure your Windows installation is up to date
- Run
flutter doctor
for diagnostics and follow its recommendations - Check the official Flutter documentation for known issues
- For permission issues, try running PowerShell as Administrator
- Ensure Java is in your PATH environment variable
Last update: September 18, 2024