-
Notifications
You must be signed in to change notification settings - Fork 4
Setup Project Repository Guide
Desumai edited this page Aug 17, 2023
·
20 revisions
Instructions on how to set up your computer to work on the source code. If you have experience with Git and Flutter, just look at the overview. To work on the project, you will require git, Flutter SDK v3.10.6, Visual Studio Build Tools, and a Dart/Flutter compatible IDE.
- Valid GitHub account
- Windows computer
- Basic computer knowledge (i.e. file/folder paths, file extensions, Windows Search, etc.)
-
Flutter v3.10.6 SDK
-
Visual Studio Build Tools
-
Git (portable)
-
Visual Studio Code (or another IDE)
- Install VSCode
- Install Visual Studio Build Tools
- Install and setup git
- Install and setup Flutter SDK version 3.10.6
- Turn on developer mode
- Download the x64 .zip version of VSCode.
- Unzip the compressed file into a local directory (e.g. Documents folder).
- Click on the "Extensions" tab on the left bar.
- Search and install the Dart and Flutter extensions by Dart Code.
- Download 64-bit Git for Windows Portable. Use portable version to bypass admin requirements.
- Run the installer and choose to install in a local directory (e.g. Documents folder).
- Open the installed "git" folder and copy the path to the "bin" folder. The path should look like
C:\PATH\TO\git\bin
.
-
Add the path to environment variables.
- Open a command prompt. You can find it by searching up "cmd" on Windows Search.
- Enter the command
git --version
. If git was properly installed the console should then display the git version. Try restarting the computer if it doesn't work.
- Configure your github username using
git config --global user.name "yourUsername"
- Configure your github email using
git config --global user.email [email protected]
- Run
git config --list
to check the settings.
- Download Flutter SDK version 3.10.6 from the official archive.
- Unzip the compressed file into a local directory.
- Open the "flutter" folder and copy the path to the "bin" folder. The path should look like
C:\PATH\TO\flutter\bin
.
-
Add the path to environment variables.
- Open up a command prompt and run
flutter doctor --version
. If working properly, it should do some installations and then show the flutter version. Ensure that the version is 3.10.6.
- Go to the Visual Studio download website
- Find and download the latest version of "Build Tools for Visual Studio"
- Run the downloaded installer. This will require admin rights (contact IT).
- Install the build tools. Make sure to include the "Desktop Development with C++" package.
- Search and select "Developer Settings" on Windows Search.
- Turn on Developer Mode (requires admin rights).
- On GitHub go to the Code page of the repository.
- On the top right-hand corner of the page, click "Fork" => "Create a New Fork".
- Keep the fork's name the same as the original and set yourself as the owner. Copy the master branch only. Create the fork.
- Open your fork and copy the HTTPS link. The link should look like
https://github.com/YOUR_USERNAME/YOUR_FORK_NAME.git
- Select a folder on your computer to contain the local project directory.
- Open the folder in VSCode.
- Open a terminal in VSCode. You can do this by pressing
CTRL + SHIFT + ~
.
- In the terminal, run
git clone HTTPS_LINK
. The project should download into the folder
- Open the new downloaded folder in VSCode.
- Ensure that the device used (written in bottom right corner) is "Windows(windos-x64)".
- Open a new terminal and run
flutter pub get
. Setup is complete.
- On Windows Search, search up "path". Select the option "Edit environment variables for your account".
- Edit the "Path" variable.
- Click "New" and paste your path to a new line.
- Click "OK" to close window and save changes.