| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A full-stack walk-in queue manager. A manager signs in, creates named queues, adds people as tokens, reorders or calls them, and watches wait-time analytics update on a dashboard — styled like a departures/dispatch board.
Built for the Rugas Team full-stack assignment.
npm install
cp .env.example .env # sets JWT_SECRET — edit the value before deploying
npm run dev # http://localhost:3000On first run the app creates data/app.db automatically (SQLite file, git-ignored) and sets up all tables — no migration step needed.
For a production build:
npm run build
npm run startapp/
login/, register/ Auth pages
dashboard/ Queue list + analytics (server component)
queues/[id]/ Single queue: now-serving board, add token, reorder
api/
auth/{register,login,logout,me}
queues/ list/create queues
queues/[id]/ queue detail, delete
queues/[id]/tokens add a token
queues/[id]/serve-next call the token at the top of the queue
tokens/[id] cancel a token
tokens/[id]/move reorder up/down
tokens/[id]/complete mark the currently-serving token as served
analytics dashboard metrics
lib/
db.ts SQLite connection + schema
queries.ts all data access / business logic
auth.ts JWT signing/verification, password hashing
components/ UI building blocks (forms, token rows, charts, etc.)
Data model (three tables): managers, queues, tokens. A token's status moves through WAITING → SERVING → SERVED, or WAITING/SERVING → CANCELLED. position orders the waiting list; called_at / served_at timestamps feed the wait-time analytics.
| Back | FazBrowse Home | New Git URL |