First off, thank you for considering contributing to TritonSpend! 🎉 We welcome all contributions and are excited to see what you'll bring to the project.
By participating in this project, you agree to uphold the Code of Conduct. Please read it to understand what actions will and will not be tolerated.
Note: You may have to restart terminal after installing each environment.
- Download git and git bash by following this link.
- Set up Git Bash as the shell for running command line prompts (in VSCode or directly openning Git Bash)
- Run:
This should output something like this:
git -v
git version 2.46.0.windows.1
- Download nvm (Node Version Manager). Follow the instructions on in this link for the details.
- Run:
This should output the version of nvm you installed.
nvm -v
- Install Node.js v18.20.4:
nvm install v18.20.4** - Switch to the installed version:
nvm use v18.20.4** - Run:
The results should be something like:
node -v npm -v
v18.20.4 10.7.0
- Fork the repository to your GitHub account.
- Clone the origin repository locally:
git clone https://github.com/CSES-Open-Source/TritonSpend.git
- Create a remote repository:
git remote add [your-username] https://github.com/[your-username]/TritonSpend.git
- Run:
The output should be something like the following:
git remote -v
[your-username] https://github.com/[your-username]/TritonSpend.git (fetch) [your-username] https://github.com/[your-username]/TritonSpend.git (push) origin https://github.com/CSES-Open-Source/TritonSpend.git (fetch) origin https://github.com/CSES-Open-Source/TritonSpend.git (push)
- Open an instance of git bash and run:
cd frontend - Install frontend libraries:
npm install
- Open another instance of git bash and run:
cd backend - Install backend libraries:
npm install
- Go to postgresql.org/download/ and download PostgreSQL for your OS.
- Open the installer, and follow the on screeen instructions.
- Open an instance of git bash and run:
cd frontend - Install frontend libraries:
npm start
- Open another instance of git bash and run:
cd backend - Install backend libraries:
npm start
- Open the CSES Opensource TritonSpend Github Repo.
- Click on the issues tab (next to code).
- Create a new issue.
- Select Bug report as the type of issue.
- Fill in the title and description and submit the issue.
- Open the CSES Opensource TritonSpend Github Repo.
- Click on the issues tab (next to code).
- Create a new issue.
- Select Feature request as the type of issue.
- Fill in the title and description and submit the issue.
- Create a new branch for the current issue you are working on:
git checkout -b origin/main [name-of-branch]
- Make changes to the branch and commit changes. I would recomment using VSCode version control or GitHub Desktop for making commits.
- Run lint in respective frontend and backend directories:
Make sure to fix all lint errors before pushing your code.
npm run lint-check
- Push the commits to your forked repository:
git push [your-username] HEAD
[your-username]is whatever you chose to set the name of your remote repository as. To check this type:git remote -v
- Go to your forked repository and make a pull request to the main branch of the original repository. Make sure to fill in the title and description of the pull request.
Please follow these coding style guidelines:
- We recommend using Prettier to format on save, and then running ESLint before making a pull request.
- Indent with tabs and use a 2-space indentation.
- Use semicolons and the end of each line.
- Write clear, concise comments where necessary.
- Use meaningful variable and function names.
Please write a rough description for the changes made in each commits
For any issues or questions, please contact Shree Venkatesh (s1venkatesh@ucsd.edu) or UC San Diego CSES (cses@ucsd.edu).