Skip to content

About

Admin panel (Vite + RTK Query) with offline mock mode, typed API fixtures, and docs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Daneshjouyar Admin Panel demo

A portfolio demonstration of a university operations console, covering dormitory, food, wallet, ticketing and other staff workflows. The records and permissions are fictional; this is not a university administration system.

Stack: Vite 8, React 19, TypeScript, Redux Toolkit / RTK Query, Ant Design 6 and Tailwind 4.

Try the demo

  • Choose ورود با حساب نمونه (sign in with sample account) to explore without registering. The sample account still requires the demo authentication server and its secret, but no database.
  • To test sign-up, use a fictional display name, an address such as reviewer@example.com and a made-up password of at least ten characters. The signup form also accepts example.org, example.net and .test addresses. Then sign in with those details.
  • Sessions last eight hours and are stored in a signed HttpOnly cookie. No verification email or OTP is sent. Never use real personal information or a password you use elsewhere.

Run locally

The repository requires Node.js 24.1.0 or newer (engines.node: >=24.1.0). Install dependencies with npm ci. Set VITE_USE_MOCK=true before starting or building; the app then uses synthetic fixtures instead of the live gateway.

npm ci
npm run local

The Vite-only server at http://localhost:3002 does not serve the authentication function. To exercise sign-in end to end, use a local Vercel development setup for this app. Configure a unique, server-only DEMO_AUTH_SECRET; for registration and password sign-in, provision a separate PostgreSQL database for this demo, run its migration, and set server-only DEMO_DATABASE_URL. See isolated demo authentication setup for details. Never reuse a real app database or the F-Student demo database.

Checks and documentation

  • npm run build type-checks and builds the app. Vercel gives the build a larger Node heap via its repo configuration.
  • npm run type-check runs TypeScript; npm run lint runs ESLint.
  • node --test scripts/demo-db/demo-auth.test.mjs runs the focused auth tests. Database-backed coverage needs a disposable test database as described in the auth setup.
  • Business overview, technical overview and fixture details.

About

Admin panel (Vite + RTK Query) with offline mock mode, typed API fixtures, and docs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages