How barathon-2i-tech/barathon_mobile works
This is an Expo/React Native mobile client for discovering local bars and events and booking event places. Users enter through login or registration, then browse a city feed or map, open event or establishment details, and manage bookings or tickets. The API and local user storage are shared internal layers. The README identifies a separate Barathon API backend; several screens are indexed but not excerpted, so their internal behavior and some connections are not inferred.
Main entry points: App.js Navigation shell · Home.js City home feed · Search.js Map search · axios.js HTTP API client
Components 22
App navigation
- Navigation shell
App.js
Account access
- Authentication screen
src/pages/Authenticator.js - Login form
src/components/Auth/Login.js - Registration form
src/components/Auth/Register.js - User dashboard
src/pages/Dashboard.js
Event discovery
- City home feed
src/pages/Home.js - Home header
src/components/Home/Header.js - Event carousel
src/components/Home/Carousel.js - Category carousel
src/components/Home/CarouselTags.js - Booking agenda
src/components/Home/Agenda.js - Map search
src/pages/Search.js - Establishment details
src/pages/Establishment.js - Category events
src/pages/EventsByCategory.js
Bookings and tickets
- Event details
src/pages/Event.js - Ticket view
src/pages/Ticket.js - QR code view
src/pages/QrCode.js
Shared services
- HTTP API client
src/constants/axios.js - Local user storage
src/constants/localStorage.js
Other components
- Mobile user
- Barathon API
- AsyncStorage
- Device location
Connections 31
- Mobile user → Navigation shell: opens
App.js - Navigation shell → Authentication screen: routes to
App.js - Navigation shell → City home feed: routes to
App.js - Navigation shell → Map search: routes to
App.js - Navigation shell → Event details: routes to
App.js - Navigation shell → Establishment details: routes to
App.js - Navigation shell → Category events: routes to
App.js - Navigation shell → Ticket view: routes to
App.js - Navigation shell → QR code view: routes to
App.js - Navigation shell → User dashboard: routes to
App.js - Authentication screen → Login form: renders
src/pages/Authenticator.js - Authentication screen → Registration form: renders
src/pages/Authenticator.js - Login form → HTTP API client: submits credentials
src/components/Auth/Login.js - Login form → Local user storage: stores user
src/components/Auth/Login.js - Registration form → HTTP API client: submits registration
src/components/Auth/Register.js - Registration form → Local user storage: stores user
src/components/Auth/Register.js - City home feed → Local user storage: reads user
src/pages/Home.js - City home feed → HTTP API client: loads feed
src/pages/Home.js - City home feed → Home header: renders
src/pages/Home.js - City home feed → Event carousel: renders
src/pages/Home.js - City home feed → Category carousel: renders
src/pages/Home.js - City home feed → Booking agenda: renders
src/pages/Home.js - Event carousel → Event details: opens event
src/components/Home/Carousel.js - Map search → Local user storage: reads user
src/pages/Search.js - Map search → HTTP API client: loads map results
src/pages/Search.js - Map search → Device location: requests position
src/pages/Search.js - Map search → Establishment details: opens establishment
src/pages/Search.js - Map search → Event details: opens event
src/pages/Search.js - Event details → HTTP API client: loads and books
src/pages/Event.js - HTTP API client → Barathon API: sends requests
README.md - Local user storage → AsyncStorage: reads and writes
src/constants/localStorage.js