How domokosalex/turistago works
TuristaGO is a digital tourist-pass system: tourists register, organize group visits, select attractions and areas, place an order, pay, then use an individual QR code for entry. Operators manage users, staff assignments, attractions and schedules; the backend also tracks visits, pass validity and payment status. The graph groups the route modules by domain and includes the shared database, authentication and pricing layers. Some route excerpts are partial; omitted links reflect that evidence limit, not necessarily absent functionality.
Main entry points: db.js MySQL connection pool · index.js HTTP API · auth.js Registration and login · rendeles_fizetes.js Payment workflow
Components 22
API and access
- HTTP API
backend/index.js - Registration and login
backend/routes/auth.js - Token authentication
backend/middleware/auth.js - Role authorization
backend/middleware/authorize.js
Tour and pass
- Tour groups
backend/routes/csoport.js - Attractions and details
backend/routes/latvanyossag.js - Passes and QR tokens
backend/routes/berlet.js - QR entry scanning
backend/routes/beolvasas.js
Orders and payments
- Visit orders
backend/routes/rendeles.js - Payment workflow
backend/routes/rendeles_fizetes.js - Order pricing
backend/utils/osszeg.js
Operations
- User management
backend/routes/felhasznalo.js - Staff assignments
backend/routes/beosztas.js - Staff creation helper
backend/utils/munkatars.js
Shared services
- Barion adapter
backend/utils/barion.js - Error responses
backend/utils/hiba.js - Token utilities
backend/utils/token.js - MySQL connection pool
backend/db.js
Other components
- Tourist
- Staff and admins
- Barion gateway
- Application database
Connections 37
- Tourist → HTTP API: uses
README.md - Staff and admins → HTTP API: uses
README.md - HTTP API → Registration and login: routes requests
backend/index.js - HTTP API → User management: routes requests
backend/index.js - HTTP API → Tour groups: routes requests
backend/index.js - HTTP API → Attractions and details: routes requests
backend/index.js - HTTP API → Staff assignments: routes requests
backend/index.js - HTTP API → Passes and QR tokens: routes requests
backend/index.js - HTTP API → Visit orders: routes requests
backend/index.js - HTTP API → Payment workflow: routes requests
backend/index.js - HTTP API → QR entry scanning: routes requests
backend/index.js - Registration and login → MySQL connection pool: queries
backend/routes/auth.js - Registration and login → Token utilities: creates tokens
backend/routes/auth.js - Registration and login → Token authentication: protects profile
backend/routes/auth.js - Registration and login → Tour groups: creates user group
backend/routes/auth.js - Registration and login → Error responses: formats errors
backend/routes/auth.js - User management → MySQL connection pool: queries
backend/routes/felhasznalo.js - User management → Staff creation helper: creates staff
backend/routes/felhasznalo.js - Tour groups → MySQL connection pool: queries
backend/routes/csoport.js - Attractions and details → MySQL connection pool: queries
backend/routes/latvanyossag.js - Attractions and details → Error responses: formats errors
backend/routes/latvanyossag.js - Staff assignments → MySQL connection pool: queries
backend/routes/beosztas.js - Staff assignments → Staff creation helper: creates staff
backend/routes/beosztas.js - Passes and QR tokens → MySQL connection pool: queries
backend/routes/berlet.js - QR entry scanning → MySQL connection pool: queries
backend/routes/beolvasas.js - Visit orders → MySQL connection pool: queries
backend/routes/rendeles.js - Visit orders → Order pricing: recalculates totals
backend/routes/rendeles.js - Visit orders → Payment workflow: references payment routes
backend/routes/rendeles.js - Payment workflow → MySQL connection pool: queries
backend/routes/rendeles_fizetes.js - Payment workflow → Order pricing: recalculates totals
backend/routes/rendeles_fizetes.js - Payment workflow → Barion adapter: starts and checks payment
backend/routes/rendeles_fizetes.js - Payment workflow → Passes and QR tokens: references pass records
backend/routes/rendeles_fizetes.js - Barion adapter → Barion gateway: calls gateway
- Order pricing → MySQL connection pool: reads and updates
backend/utils/osszeg.js - Staff creation helper → MySQL connection pool: writes transaction
backend/utils/munkatars.js - Token utilities → MySQL connection pool: stores refresh tokens
backend/utils/token.js - MySQL connection pool → Application database: connects
backend/db.js