A digital ticketing system for tram services that allows users to:
├── backend/
│ ├── database/
│ │ ├── migrations.ts # Database schema
│ │ └── queries.ts # Database operations
│ ├── routes/
│ │ ├── auth.ts # Authentication routes
│ │ ├── tickets.ts # Ticket management routes
│ │ └── verification.ts # Ticket verification routes
│ └── index.ts # Main API entry point
├── frontend/
│ ├── components/
│ │ ├── Auth.tsx # Login/Register components
│ │ ├── TicketList.tsx # Display purchased tickets
│ │ ├── TicketPurchase.tsx # Purchase new tickets
│ │ ├── TicketScanner.tsx # Scan tickets for verification
│ │ └── TicketView.tsx # Display individual ticket with QR
│ ├── index.html # Main HTML template
│ └── index.tsx # Frontend entry point
└── shared/
└── types.ts # Shared type definitions