Skip to content

Installation

Samuel Montambault edited this page Mar 30, 2021 · 4 revisions

This page will help you understand how to install your dev environment.

Requirements

  • Flutter SDK v2.0.0 or higher
  • Openssl v1.1.1g or higher

Before running the code

  • To access some features you will need the SignetsAPI certificate, these files are encrypted. To decrypt them you will need to execute the env_variables.sh script (only available on the Google Drive of the club), then run:
chmod +x ./scripts/decrypt.sh
./scripts/decrypt.sh

Run the code

  • After cloning the repo, you will have to get the packages and generate the l10n classes. To do that run the following command:
flutter pub get

Add environment variable for API_KEY

  • In order to be able to run the app with the GitHub API token, you need to add an attribute when running the app. To do that run the following command:
flutter pub run --dart-define=SOME_VAR=SOME_VALUE
    # where SOME_VAR will be replaced with GITHUB_API_TOKEN
    # and SOME_VALUE will be the private token

You can add that command directly to your run configuration:

  • Intellij:

img.png