You can edit the website in two ways: in your browser via Github codespaces, or locally.
Install NVM (Node.js Version Manager):
-
Windows:
Download and run the NVM for Windows installer. -
macOS / Linux:
Follow the instructions in the official NVM repository.
Visit this link to set up a Codespaces environment. This will give you access to a full-blown VS Code editor in your browser. Magic!
NOTE: Please close the codespace site once you're done editing. There is an hour-based usage quota of 120 hours per month.
Regardless of whether you are developing locally or using Codespaces, you need to set up Node.js:
nvm install 20.19.5
nvm use 20.19.5
npm installStart a development server with the following command:
npm run dev
You should see an output like
@nagyrajmund ➜ /workspaces/leaderboard (test) $ npm run dev
> [email protected] dev
> vite
VITE v5.4.21 ready in 318 ms
➜ Local: http://localhost:5173/leaderboard/
➜ Network: use --host to expose
➜ press h + enter to show help
Click on the localhost link to view your local deployment of the website. (Yes, this works in Codespaces as well.) Any code changes will automatically update the local website.
Just commit and push your changes to the repository, and the website will be automatically updated by the configured Github Actions workflow.