leaderboards.gg
The frontend for the leaderboards.gg website. Backend repo: https://github.com/leaderboardsgg/leaderboard-backend
Discord
- If you have any questions, comments, concerns that don't fit in GitHub please direct them here!
Contributing
If you'd like to start contributing to the project please check CONTRIBUTING.md first to make sure things go as smoothly as possible!
VSCode Setup
-
Install the recommended extensions
- These come from
/.vscode/extensions.json - They will also appear in the extensions tab in the recommended dropdown alongside some automatically suggested extensions from VSCode itself.
- These come from
-
Make sure if you have done Vue 2 dev in VSCode to disable Vetur extension for the workspace
-
Enable Volar Takeover mode
Build Setup
-
set node version with nvm
- $
nvm use(You may need to runnvm installfirst)
- $
-
install pnpm (Performant NPM)
- $
npm install -g pnpm
- $
-
install dependencies
- $
pnpm install
- $
-
run
nuxt generate- $
pnpm generate
- $
-
run and connect to backend
- Create a copy of
.env.examplenamed.envfile with theBACKEND_BASE_URLset to the address of the backend.- you can use
https://lbgg-backend-dev.fly.devas is in the.env.examplefile if you don't want to run the backend locally - You can download the backend project and run it locally here
- you can use
- Create a copy of
-
serve with hot reload at
localhost:3000- $
pnpm dev
- $
Look at the nuxt 3 documentation to learn more.
Other commands you can use
-
build for production and launch server
- $
pnpm build - $
pnpm preview
- $
-
generate static project
- $
pnpm generate
- $
-
enable husky pre-commit hooks
- $
pnpm husky
- $
-
disable husky pre-commit hooks
- $
git config --unset core.hooksPath
- $
Checkout the deployment documentation for more information.
Development Environment
If you're using VSCode (which we highly recommend) please install the 6 extensions that we have in our extensions.json file. This in the extensions section then shows you ESLint, Prettier, Vetur, NPM Intellisense, TailwindCSS IntelliSense, PostCSS Language Support, etc. This will allow you to have proper automatic linting, formatting, and more with no extra setup!
Vue File Structure
Check out FILESTRUCTURE.md if you are unsure how things are laid out in this repository.