6d08d6ea0129d721b31ea0a45f274d0a23cdb3cc
VTuber Star Awards
Monorepo for the VTuber Star Awards MVP.
Stack
- Frontend: Vue 3, Vite, Pinia, Tailwind CSS, PrimeVue, shadcn-style Vue UI primitives
- Backend: ASP.NET Core 8, EF Core 8, PostgreSQL
Structure
frontend/Vue applicationBackend/ASP.NET Core APIprototype/earlier visual prototype workdocker-compose.dev.ymloptional local PostgreSQL container
Frontend
cd frontend
npm install
cp .env.example .env
npm run dev
The frontend uses a lightweight local session flow for development:
- Sign in from the header
Viewer Loginunlocks nomination and votingAdmin Loginunlocks the admin routes and management views- Voting and nominations can be resubmitted; the backend updates the existing user state instead of blindly duplicating submissions
Backend
Update Backend/appsettings.json or set VTSA_POSTGRES, then:
cd Backend
dotnet restore
dotnet build
dotnet run
Local Database
If Docker is available locally:
docker compose -f docker-compose.dev.yml up -d
cd Backend
dotnet ef database update
Default dev database:
Host=localhost;Port=5433;Database=vtuber_star_awards_dev;Username=postgres;Password=postgres
If dotnet ef database update is unavailable in the current environment, the repository also contains a bootstrap SQL script:
cd Backend
psql "Host=localhost Port=5433 Database=vtuber_star_awards_dev Username=postgres Password=postgres" -f Migrations/InitialCreate.manual.sql
Verify the runtime wiring:
curl http://localhost:5084/api/health
curl http://localhost:5084/api/health/database
Development auth/session endpoints:
curl -X POST http://localhost:5084/api/auth/dev-login \
-H "Content-Type: application/json" \
-d '{"twitchUserId":"jayuhime_demo","displayName":"Jayuhime","role":"admin"}'
Notes
- Public endpoints live under
/api/public/* - Admin summary endpoint lives under
/api/admin/dashboard - Session endpoints live under
/api/auth/* - Database connectivity and pending migrations are exposed at
/api/health/database - Current frontend store falls back to static seed-like data if the API is unavailable
- The admin dashboard now includes a lightweight risk center and audit log for suspicious submit patterns and reviewed admin actions
Description
Languages
C#
41.2%
Vue
35.5%
TypeScript
9.2%
CSS
5.3%
Python
5.3%
Other
3.5%