1.2 KiB
1.2 KiB
CaseForge
CS-style case opening site with virtual credits, inventory, leaderboard, and an admin panel for cases / drops / rates.
Stack
- Server: Node.js, Express, Prisma, SQLite, express-session
- Client: React (Vite), React Router
Setup
npm run install:all
npm run db:push
npm run db:seed
npm run dev
- App: http://localhost:5173
- API: http://localhost:3001
Demo accounts
| Role | Username | Password |
|---|---|---|
| Admin | admin |
admin123 |
| Player | player |
player123 |
New registrations receive 100.00 starting credits (STARTING_BALANCE in server/.env, stored in cents).
Features
- Login / register (username + password)
- Dashboard: inventory + available cases
- Case page with CS-style reel open animation (result rolled server-side)
- Leaderboard: richest players (balance + inventory market value)
- Admin: manage cases, items, drop weights, enable/disable cases
Notes
- Balances and prices are integers in cents
Transactiontypes includeopen_caseandseed_credit(stubs for futuredeposit/withdrawal)- Swap
DATABASE_URLto PostgreSQL later without changing app logic