Update Setting up IntelliJ for the Companion App and the Game Manager authored by Devin's avatar Devin
# Opening the Project
In IntelliJ, open up the project by going to `File > Open`, and selecting the project directory.
For the game manager, open `freshmanrpg/game_manager`.
For the companion app, open `freshmanrpgsuite/companion_app`.
# Setting up Flutter
You'll need to install the Flutter SDK from [this page](https://docs.flutter.dev/get-started/install/windows/desktop?tab=download#download). Scroll down to the section labeled "Install Flutter SDK," and click the "Download and install" tab next to "Use VS Code to install", and click the download button. This will download a zip file. Place the file somewhere where you'll want to keep it for a while.
* Note: `C:\Dev\flutter` might be a good option for Windows devices, for instance.
Then, install the Dart and Flutter plugins for IntelliJ so you can use integrated features:
* Go to `File > Settings > Plugins`
* Install the following plugins:
* Flutter
* Dart
After that, you'll need to tell IntelliJ where to find Flutter and Dart:
* Go to `File > Settings > Languages & Frameworks > Flutter`
* Set the path to the Flutter SDK. If you followed the recommendation mentioned before, it will be `C:\Dev\flutter`. Otherwise, it will be the path to the flutter folder wherever you placed it on your system.
* In the same window, under `Languages & Frameworks`, click `Dart`
* Check the box labeled "Enable Dart support for the project ..."
* Set the path to the Dart SDK. Flutter comes with the Dart SDK. Navigate into the following directory from the flutter folder: `flutter\bin\cache\dart-sdk
* Check each of the boxes under "Enable Dart support for the following modules:"
# Running the App
On the top right, you should see a dropdown menu with options like "main.dart". Next to it is another dropdown menu with devices you can select to run the app on. It's best to run the app on your phone, but if you don't need to scan QR codes, you can test it in a web browser too.
* If you're using Android, [follow this guide to set it up](Enable-USB-Debugging-on-Android).
* If you're using iOS, [follow this guide to set it up](Setting-up-Xcode).
Once you've got it set up, you should be able to run the app!
# Having Trouble?
See [this page](Troubleshooting-Flutter-Errors) for some common errors with Flutter and how to resolve them.
\ No newline at end of file