Le site pour The Daltons Crew.
https://daltons-crew.itsnova.sh
- Svelte 69.4%
- TypeScript 25.8%
- CSS 3.7%
- JavaScript 0.9%
- HTML 0.2%
| .vscode | ||
| database | ||
| images | ||
| src | ||
| static | ||
| .env.example | ||
| .gitattributes | ||
| .gitignore | ||
| .infisical.yaml | ||
| .npmrc | ||
| .prettierignore | ||
| .prettierrc | ||
| components.json | ||
| compose.yml | ||
| eslint.config.js | ||
| kysely.config.ts | ||
| LICENSE | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
| tsconfig.json | ||
| vite.config.ts | ||
About The Project
Some cool features we developed for the crew.
Getting Started
Prerequisites
- NodeJS
24+ - Docker Compose
2+ - pnpm
12+ - Infisical CLI
latest
Installation
Log in with the Infisical CLI to access the secrets inside the app.
infisical login
-
Install the dependencies.
pnpm install -
Create a
.envfile based on.env.example.cp .env.example .env -
Start the database.
infisical run --env=dev -- docker compose up --build --detach -
Run the migrations.
infisical run --env=dev -- pnpm kysely migrate:latest -
Generate the types from the live database.
infisical run --env=dev -- pnpm kysely-codegen --runtime-enums --out-file src/lib/providers/database/types.ts -
(Optional) Seed the database.
First, create the data inside
database/seeds/league.jsonwith the following structure.[ { "discordId": "<discord_id>", "name": "John", // leagueStats can be null if the user doesn't play league "leagueStats": { "skill": { "top": 9, "jungle": 7, "mid": 3, "adc": 4, "support": 3 }, "preference": { "top": 1, "jungle": 2, "mid": 4, "adc": 3, "support": 5 } } } // Other players... ]infisical run --env=dev -- pnpm kysely seed:run -
Start the web application.
infisical run --env=dev -- pnpm run dev -
Open your browser at http://localhost:5173.
License
Distributed under the MIT License. See LICENSE for more information.