How shan23-ai/pascal-travels-- works
Pascal Travels is a travel and visa-services website whose main user journey is exploring travel, visa, immigration, and tour offerings, then submitting an application or booking and potentially paying. The repository also includes a separate Express API for authentication, jobs, agents, email, and provider-backed payments. The README documents the landing-page capabilities; sampled source shows payment handling and server routing. Several frontend and API modules were not excerpted, so their internal interactions are not inferred.
Main entry points: server.js Express API · store.js Application Store · index.html Travel Site · payments.js Payment Routes
Components 24
Travel Website
- Travel Site
index.html - Site Interactions
app.js - Visa & Tour Catalog
data/packages.js - Job Listings
data/jobs.js - Visa Requirements
data/requirements.js
Payment Experience
- Payment Modal
controllers/payment-controller.js - Payment Services & Pricing
config/payment-config.js - Buupass Client
services/payment-service.js
API Services
- Express API
server/server.js - Authentication Routes
server/routes/auth.js - JWT Authorization
server/middleware/auth.js - Payment Routes
server/routes/payments.js - Payment Webhooks
server/routes/webhooks.js - Jobs Routes
server/routes/jobs.js - Agent Routes
server/routes/agents.js - Email Routes
server/routes/emails.js - Email Delivery
server/services/emailService.js - PesaLink Processing
server/services/pesalinkService.js - Western Union Processing
server/services/westernUnionService.js
Operations Data
- Server Configuration
server/config.js - Application Store
server/store.js
Other components
- Traveler
- Buupass API
- PostgreSQL
Connections 31
- Traveler → Travel Site: browses
README.md - Travel Site → Site Interactions: uses interactions
README.md - Travel Site → Visa & Tour Catalog: presents services
README.md - Travel Site → Job Listings: presents jobs
- Travel Site → Visa Requirements: supports visa choices
- Traveler → Payment Modal: starts booking
- Payment Modal → Payment Services & Pricing: reads service pricing
controllers/payment-controller.js - Payment Modal → Buupass Client: submits payment
controllers/payment-controller.js - Buupass Client → Payment Services & Pricing: reads API settings
services/payment-service.js - Buupass Client → Buupass API: requests payment
services/payment-service.js - Express API → Authentication Routes: mounts routes
server/server.js - Express API → Payment Routes: mounts routes
server/server.js - Express API → Payment Webhooks: mounts routes
server/server.js - Express API → Jobs Routes: mounts routes
server/server.js - Express API → Agent Routes: mounts routes
server/server.js - Express API → Email Routes: mounts routes
server/server.js - Authentication Routes → JWT Authorization: verifies tokens
server/routes/auth.js - Payment Routes → Application Store: reads and writes
server/routes/payments.js - Payment Routes → PesaLink Processing: initiates payments
server/routes/payments.js - Payment Routes → Western Union Processing: initiates payments
server/routes/payments.js - Payment Webhooks → PesaLink Processing: handles callbacks
server/routes/webhooks.js - Payment Webhooks → Western Union Processing: handles callbacks
server/routes/webhooks.js - Payment Webhooks → Application Store: records events
server/routes/webhooks.js - Jobs Routes → Application Store: reads and writes
server/routes/jobs.js - Agent Routes → Application Store: reads and writes
server/routes/agents.js - Email Routes → Email Delivery: sends messages
server/routes/emails.js - PesaLink Processing → Application Store: updates payments
server/services/pesalinkService.js - Western Union Processing → Application Store: updates payments
server/services/westernUnionService.js - Express API → Server Configuration: loads settings
server/server.js - Express API → Application Store: initializes store
server/server.js - Application Store → PostgreSQL: uses when enabled
server/store.js