-
Download and use VSCode for development (This is what I use/recommend)
-
You will need to download git (and if you are using windows make sure you include the git credentials manager). Here is the link for the Git download
-
Before you start using Git, configure your user name and email.
git config --global user.name "Your Name" git config --global user.email "your.email@example.com" -
Clone the repository (which downloads a local copy of the project to your computer):
git clone https://github.com/noahallen/Avalon.git cd Avalon -
You will need to download Node (which includes npm). I downloaded version 21.6.0 (which includes npm 10.2.4)
-
Once you have the repository, git, and node downloaded, you should then install the needed dependencies for the project. To do this first you need to open a terminal in the project's folder (control + shift + ` in vscode).
npm install -
Download and place the .env file from the Discord into the root directory. This file contains the firebase api key and other private information. All of this information will only live locally, do not save it to git.
-
Switch to the main branch and pull the latest changes:
git switch main git pull -
Create a new feature branch:
git checkout -b "<Insert_name_of_feature_branch_here>" -
Make changes and stage them for commit:
git add <file_to_track>git add . -
Commit your changes with a descriptive message:
git commit -m "Message describing the changes you made in the commit" -
Push your feature branch to the remote repository:
git push
-
Create a Pull Request (PR) on GitHub and assign a team member for review.
-
After approval, ensure your feature branch is up to date with main using rebase:
git switch main git pull git switch "<Insert_name_of_feature_branch_here>" git rebase main -
Resolve any conflicts, if needed, during rebase.
-
Once in sync, merge the PR into the main branch in Github (should be a big green merge button)
-
Once you merge you should update your local main branch
git switch main git pull
-
If you aren't sure of the current status of your local branch, you can type
git statusin a terminal and it will output the current status of the branch. -
If you aren't sure which branch you are on, you can type
git branchand it will output a list of branches and highlight green which you are on. (FOr this to stop outputting branches typeq) -
To switch between branches you can type
git switch <branch name>