How cgsindac/triptogo works
TripToGo is a Lipa City tourism app: users sign in, browse places and reviews, and submit reviews or place suggestions for administrator moderation. The mobile app communicates with a Spring backend, whose services validate requests and persist accounts, places, and reviews in PostgreSQL. The README also describes preference-and-budget recommendations and map features, though their implementation was not sampled; those capabilities are represented without asserting unverified internal call paths. Relationships below are limited to excerpted references or README statements.
Main entry points: ReviewService.java Reviews and moderation · api.ts API transport · app Mobile screens · LocationService.java Place catalog
Components 22
Mobile app
- Mobile screens
TTGMobile/src/app - Review dialog
TTGMobile/src/components/ReviewDialog.tsx - Auth client
TTGMobile/src/data/auth.ts - Review client
TTGMobile/src/data/reviews.ts - Place client
TTGMobile/src/data/places.ts - API transport
TTGMobile/src/data/api.ts
Backend API
- Authentication API
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Controllers/AuthController.java - User API
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Controllers/Usercontroller.java - Place API
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Controllers/LocationController.java - Review API
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Controllers/ReviewController.java - Sessions and accounts
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Services/AuthService.java - User management
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Services/UserService.java - Place catalog
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Services/LocationService.java - Reviews and moderation
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Services/ReviewService.java - Input validation
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Components/InputValidation.java - Budget recommendations
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Services
Tourism domain and persistence
- Account records
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Repositories/UserRepository.java - Place records
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Repositories/LocationRepository.java - Review records
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Repositories/ReviewRepo/ReviewRepository.java - Review request options
TTGBackend/src/main/java/com/TripToGo/TTGBackend/DTOs/ReviewDTOs/ReviewRequestDTO.java
External systems
- PostgreSQL
Other components
- Traveler or admin
Connections 37
- Traveler or admin → Mobile screens: uses
README.md - Mobile screens → Auth client: signs in
TTGMobile/src/app/signup.js - Auth client → API transport: requests
TTGMobile/src/data/auth.ts - Mobile screens → Place client: browses places
README.md - Mobile screens → Review client: reads reviews
TTGMobile/src/app/(tabs)/reviews.tsx - Mobile screens → Review dialog: opens submission
TTGMobile/src/app/(tabs)/places/[id].tsx - Review dialog → Review client: submits review
TTGMobile/src/components/ReviewDialog.tsx - Review client → API transport: sends requests
TTGMobile/src/data/reviews.ts - Place client → API transport: sends requests
TTGMobile/src/data/places.ts - API transport → Authentication API: calls auth API
- API transport → Place API: calls place API
- API transport → Review API: calls review API
- Traveler or admin → Authentication API: registers or logs in
README.md - Traveler or admin → Place API: browses catalog
README.md - Traveler or admin → Budget recommendations: requests suggestions
README.md - Traveler or admin → Place API: uses city map
README.md - Authentication API → Sessions and accounts: delegates
- User API → Sessions and accounts: uses sessions
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Controllers/Usercontroller.java - User API → User management: delegates
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Controllers/Usercontroller.java - Place API → Place catalog: delegates
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Controllers/LocationController.java - Place API → Reviews and moderation: loads review options
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Controllers/LocationController.java - Review API → Reviews and moderation: delegates
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Controllers/ReviewController.java - Review API → Sessions and accounts: checks identity
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Controllers/ReviewController.java - Sessions and accounts → User management: authenticates users
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Services/AuthService.java - Sessions and accounts → Account records: checks admins
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Services/AuthService.java - User management → Account records: reads and writes
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Services/UserService.java - Place catalog → Input validation: validates input
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Services/LocationService.java - Place catalog → Place records: searches catalog
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Services/LocationService.java - Place catalog → Review records: aggregates ratings
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Services/LocationService.java - Review API → Review request options: accepts review data
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Controllers/ReviewController.java - Reviews and moderation → Input validation: validates input
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Services/ReviewService.java - Reviews and moderation → Place catalog: resolves proposals
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Services/ReviewService.java - Reviews and moderation → Place records: locks and creates places
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Services/ReviewService.java - Reviews and moderation → Review records: stores and moderates
TTGBackend/src/main/java/com/TripToGo/TTGBackend/Services/ReviewService.java - Account records → PostgreSQL: persists records
- Place records → PostgreSQL: persists records
- Review records → PostgreSQL: persists records