- Frontend
- Framework: React
- Language: Typescript
- Styling: Sass modules
- Backend
- Framework: Java Spring
git clone git@github.com:jason-shoe/CrossWorks.git
First Time:
cd frontendnpm installnpm install sass
Running Everytime:
cd frontendnpm start
./gradlew bootRun
- Create an issue or find an issue in the Issue tab. If making an issue, make sure to fill in the blanks and add a frontend/backend label to the issue
- Checkout to main, pull, and then make a new branch and do changes there.
- Commit and push changes.
- Create PR and make sure its properly linked to Github issue
- Merge the PR
Frontend
- Always use functional components. Never use class components
- Always use
React.memofor functional components. - Keep styling as modular as possible. Try not to reuse same stylesheet for multiple components.
Backend
./gradlew bootRun
Making Changes
git checkout main(make sure you're on your local repository's main branch)git pull origin main(sync up your local repository with the remote one on Github)git checkout -b <branchname>(create a new branch after syncing)- Make your changes
git status(shows the files that you've changed)git add .(adds all the files to be)git commit -m <commit message name>(puts all the files you added in a commit)git push origin <branchname>(sends the commit to the remote repository)- Make a pull request in the Github repo
Updating your branch After making a branch and performing changes on files to that branch, there is a possibility that someone else was editing and merged some of the same files as you.
git checkout maingit pull origin mainget checkout <branch you were on>git fetch