Skip to content

Lebob-Robotics/Lebob-Website

Repository files navigation

Lebob FLL Robotics Team Website

Live website: https://lebob.com.au
Docs: https://lebob.com.au/Lebob-Website/docs

The recommended code editor for beginners is VSCode. Install VSCode here.

Contributing

Issues

  • 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 image

  • 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

Cloning the Repo

  • To begin making changes on the repository, you must clone it to your device locally first. There are two ways of doing this:
  1. 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 image

    • You can now continue with the rest of the instructions

  2. 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-Website in the terminal, and it should have cloned
    • You can now navigate to Lebob-Website in your code editor and check if it has cloned
  3. Before continuing, see dependencies to be able to run the website.

Terminal

  • 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.

Branches

  • 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

Commits

  • After doing all your changes to the code, run:
    git commit -m "<your-commit-message>"
    git push origin <branch-name>
    
image
  • This will commit (save) your work and put your changes onto the online branch.

Pull Requests

  • 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
image
  • 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.

Pushing

  • 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

Dependencies

  • node.js: Install (latest)
  • pnpm: run npm install pnpm These are both needed to run the website.

Run (Development)

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.

image

About

Website for team Lebob

Topics

Resources

Stars

Watchers

Forks

Contributors