The recommended code editor for beginners is VSCode. Install VSCode here.
-
Issues are used for telling other contributors what to fix (issues the code has)
-
To create an issue, go to the issues tab on our repository and click new issue

-
If you want to work on an issue, assign yourself and comment on the issue to tell other contributors that you are doing the issue
- To begin making changes on the repository, you must clone it to your device locally first. There are two ways of doing this:
- In Visual Studio Code (VSC)
-
Upon opening VSC, you will be met with a welcome tab with some actions you can do - If you are on a previous codespace, enter Ctrl/Cmd + Shift + N to open a new window
-
Then, click
Clone Git Repository, follow the instructions, and enter this URL
-
You can now continue with the rest of the instructions
-
- In Terminal
- If you can't find the
Clone Git Repository, or don't have or use VSC, then follow this: - Navigate in your file manager to the folder you want this project to be in
- Right-click the folder, and select open in terminal
- Enter
git clone https://github.com/Lebob-Robotics/Lebob-Websitein the terminal, and it should have cloned - You can now navigate to
Lebob-Websitein your code editor and check if it has cloned
- If you can't find the
- Before continuing, see dependencies to be able to run the website.
- Most commands will be run in terminal
- To open terminal in VSC, enter Ctrl/Cmd + `
- You can also search up terminal as an app on your computer and it will show up.
- Before starting your work, make sure to create a new branch by running:
git push origin -u <branch-name>``` <branch-name>should be named in the format of<your-name>/<branch-scope><branch-scope>should be a short, fully lowercase description of what your change is doing. e.g. fixing bugs
- After doing all your changes to the code, run:
git commit -m "<your-commit-message>" git push origin <branch-name>
- This will commit (save) your work and put your changes onto the online branch.
- When all your work is finished, and you want it to be merged to main, you can make a pull request (pr)
- To create a pr, go to the pull requests tab on our repository and click new pull request
- Name it something descriptive and appropiate and then click create
- Ping someone to review your code
- They can tell you to fix certain things by leaving a review which you can do by editing the code and commiting again.
- Before you can push, someone else has to review your changes. (and accept them)
- A check will then run to see if your code works.
- If it doesn't work you will need to fix your code.
- Otherwise, you can click merge to push your code to main.
- To get the latest code from the repo, enter:
git checkout <your-branch-name> git merge main - If there are conflicts, click Resolve in merge editor, click the double checkmark in the incoming window, and click Complete merge
- Commit the merge and push to your branch
- node.js: Install (latest)
- pnpm: run
npm install pnpmThese are both needed to run the website.
You can run this command if you want to test the code:
pnpm run dev
Wait for it to say ✅ Starting... then enter the link it tells you to to see the website locally on your laptop.
The changes you make will be updated as you save your work.