How barathon-2i-tech/barathon_pro works
Barathon Professional is a web portal for hospitality businesses to register, manage establishments and events, and maintain professional profiles; the public landing page also describes the broader Barathonien discovery experience. The principal workflow routes users into public registration or a protected professional workspace, where establishment and event pages use authenticated API calls to retrieve or update data. Shared form models and validation support these management stages. The graph follows shown routes and indexed imports; several feature pages and integrations are represented from routing or module references rather than inspected implementation.
Main entry points: ProtectedLayout.jsx Protected layout · axiosUrl.jsx API client · App.jsx Route application · EstablishmentUpdate.jsx Establishment editor
Components 20
Public entry and access
- Route application
src/App.jsx - Welcome page
src/Page/Welcome.jsx - Registration flow
src/Page/Auth/RegisterHome.jsx - Login page
src/Page/Auth/LoginPage.jsx - Session and auth
src/Components/Hooks/useAuth.jsx - Protected layout
src/Components/Auth/ProtectedLayout.jsx
Professional workspace
- Professional dashboard
src/Page/Professional/Dashboard.jsx - Profile management
src/Page/Professional/Profile/Profile.jsx
Business management
- Establishment listing
src/Page/Professional/Establishment.jsx - Establishment editor
src/Page/Professional/EstablishmentUpdate.jsx - Establishment events
src/Page/Professional/Event/EventOfEstablishment.jsx - Event editor
src/Page/Professional/Event/EventOfEstablishmentUpdate.jsx - Event categories
src/Components/Hooks/useCategory.jsx
Shared runtime services
- Form components
src/Components/CommonComponents/FormsComponent - Form validation
src/utils/FormSchemaValidation.js - Form defaults
src/utils/FormInitialValue.js - Authenticated form transport
src/utils/AxiosModel.jsx - API client
src/utils/axiosUrl.jsx
Other components
- Visitor / professional
- Barathon API
Connections 26
- Visitor / professional → Route application: opens
- Route application → Welcome page: routes to
src/App.jsx - Route application → Registration flow: routes to
src/App.jsx - Route application → Login page: routes to
src/App.jsx - Route application → Protected layout: routes through
src/App.jsx - Protected layout → Professional dashboard: routes to
src/App.jsx - Protected layout → Profile management: routes to
src/App.jsx - Protected layout → Establishment listing: routes to
src/App.jsx - Protected layout → Establishment editor: routes to
src/App.jsx - Protected layout → Establishment events: routes to
src/App.jsx - Protected layout → Event editor: routes to
src/App.jsx - Login page → Session and auth: uses
src/Page/Auth/LoginPage.jsx - Session and auth → API client: calls
src/Components/Hooks/useAuth.jsx - Establishment listing → API client: fetches data
src/Page/Professional/Establishment.jsx - Establishment editor → API client: fetches data
src/Page/Professional/EstablishmentUpdate.jsx - Establishment editor → Form components: renders
src/Page/Professional/EstablishmentUpdate.jsx - Establishment editor → Form validation: validates with
src/Page/Professional/EstablishmentUpdate.jsx - Establishment editor → Form defaults: uses defaults
src/Page/Professional/EstablishmentUpdate.jsx - Establishment events → API client: fetches events
src/Page/Professional/Event/EventOfEstablishment.jsx - Event editor → Event categories: uses
src/Page/Professional/Event/EventOfEstablishmentUpdate.jsx - Event editor → Form components: renders
src/Page/Professional/Event/EventOfEstablishmentUpdate.jsx - Event editor → Form validation: validates with
- Event editor → Form defaults: uses defaults
- Profile management → Authenticated form transport: submits changes
src/Page/Professional/Profile/Profile.jsx - Authenticated form transport → API client: sends requests
src/utils/AxiosModel.jsx - API client → Barathon API: HTTP requests