How jasonlin1993/taipei_day_trip works
Main System Components
Frontend Layer:
• Static content (HTML, SCSS, JavaScript)
• Client-side features (Authentication, Booking, Payment Integration)
• Pages (Index, Attraction, Booking, Thank You)
Backend Layer:
• Flask Application Server
• RESTful API Endpoints
• JWT Authentication System
• Database Connection Pool
Database Layer:
• MySQL Database (with tables for attractions, users, bookings, orders)
External Services:
• TapPay Payment Gateway
• AWS EC2 Hosting
[Client Layer]
• ↕
[Application Layer]
• ↕
[Data Layer]
Connection and Flow Indicators
• HTTP/AJAX requests between frontend and API
• Database queries
• Authentication flows
• Payment processing flow through TapPay
Special Features to Highlight
• Infinite scroll mechanism
• JWT token flow
• TapPay payment integration
• Connection pooling
• Static file serving
Additional Elements
Infrastructure:
• AWS EC2 instance
• Ubuntu Server
Security:
• JWT token validation
• Bearer token authentication
Specific Implementation Details
• How the MVC pattern is implemented (Model/View/Controller separation)
• API routing system
• Static file serving through Flask
• Database connection pooling
• Payment processing flow