A worlde like game for TF2. Inspired by wordle, loldle, and smidle.
- docs/ # Documentation and command cheat-sheats
- prisma/ # Schema and migrations
- scripts/ # Python scripts for collecting tf2 data
- src/ # Sveltekit related filed
- lib/
- components/ # Global components
- composables/ # Global composables
- server/ # All server code
- dtos.ts # Types used between server and client
- types.ts # General types
- routes/ # App routes
- api/ # Api routes
- static # Static sveltekit files
- tests # E2E tests
Prerequisites
- Docker
- Node
- Add
.env
file. Look at.env.example
for all the variables needed. - Install dependencies
pnpm install
- Run local postgres with docker:
docker compose up -d
- Generate prisma client
pnpm dlx prisma generate
- Apply prisma migration to your local database
pnpm dlx prisma migrate deploy
- Run application
pnpm dev
- Create a new branch from main where you can develop your feature in piece. Remember to commit regularly!
- Create a merge request to main when done. Make sure all workflows pass and wait for approval.
- When approved, merge and delete the branch.
Playwright browsers
pnpm exec playwright install
Run development server
Note: Make sure the dev server has optimized all the dependencies
pnpm dev
Run tests
// Integration tests
pnpm test:integration
// With trace viewer
pnpm test:integration --trace on
// Specific test file
pnpm test:integration <filename.test.ts>
// Specific test based on name
pnpm test:integration -g "name of test"
// Unit tests
pnpm test:unit
// All tests
pnpm test
Use this for more info on flags to run with tests