Track Steam titles, search live prices, and manage a wishlist with a Vue + Django stack. Will add other game platforms when possible.
- Django 5 + DRF backend with session auth, CSRF protection, and Postgres (trigram search on game titles).
- Vue 3 + Vite frontend with Pinia state, Vue Router, and toast notifications.
- Wishlist management (view/add), Steam search with fuzzy matching, and price badges for tracked games.
backend/– Django project (base app is calledconfig/) andtrackerapp with auth + wishlist API.frontend/– Vite/Vue SPA with components for search, wishlist, header/footer.
- Python 3.13+
- Node 20+ (or 22+)
- PostgreSQL with
pg_trgmextension enabled for trigram search.
cd backend- Install deps (Poetry):
poetry install - Ensure Postgres is running and matches
config/settings.py(DBgame_price_tracker, userpieng, passwordpieng_test, hostlocalhost). - Enable trigram:
psql -d game_price_tracker -c "CREATE EXTENSION IF NOT EXISTS pg_trgm;" - Run migrations:
python manage.py migrate - Create a superuser (for login):
python manage.py createsuperuser - Start API:
python manage.py runserver 8000
CORS/CSRF: CORS_ALLOWED_ORIGINS/CSRF_TRUSTED_ORIGINS currently expect the frontend on http://localhost:5173 (add or change ports here if needed).
cd frontend- Install deps:
npm install - Run dev server:
npm run dev(Vite defaults tohttp://localhost:5173) - Build:
npm run build
The frontend expects the API at http://localhost:8000 and uses session cookies. CSRF is handled via the useCsrf composable before POSTs.
GET /api/auth/csrf/– fetch CSRF token cookiePOST /api/auth/login/– session login (username/password)POST /api/auth/logout/– logoutGET /api/auth/session/– check sessionGET /api/search/?query=...– search Steam games (trigram)GET /api/wishlist/steam– user wishlist (auth required)POST /api/wishlist/add/– add appid to wishlist (auth + CSRF)