How kaimmrt/tiko-event-management-system works
Main Components
• Frontend Application:
• React UI: Comprises the main App.tsx, page components (HomePage, AddVisitor, Dashboard, SignIn, SignUp, Visitors), reusable components (Loader, Pagination, SearchInput, Toast) and layout sections (Header, etc.).
• Routing & Authentication: Utilize auth components like PrivateRoute.tsx and PublicRoute.tsx to control access to pages.
• Styling: SCSS files (App.scss, Header.scss) and antd components for consistent design.
• State Management:
• Redux Store: Includes actions (authActions.ts, visitorActions.ts), reducers (authReducer.ts, visitorReducer.ts), and store configuration files.
• Firebase Integration:
• Firebase Configuration: Located in src/firebase/config.ts, which handles connection and authentication with Firebase (authorization, possibly database interactions).
• Public Assets:
• Static files served from the public directory (index.html, manifest.json, robots.txt).
• UI/Frontend as a single block detailing components:
• App Container: The entry point (src/App.tsx) that integrates the Router and global styling.
• Page Components: Illustrate each page (Dashboard, SignIn, etc.) as sub-components, indicating that they plug into the routing system.
• Reusable Components: Group components like Loader, Pagination, SearchInput, Toast which are used across pages.
• Authentication Flow:
• Redux Flow:
• Redux Store block connected to components that dispatch actions and receive state updates.
• Firebase Backend:
• Public Directory:
• Static file serving layer that delivers the application shell and asset files to the browser.
Architectural Patterns and Design Principles
• Component-Based Architecture: Demonstrated in how React divides the UI into smaller, reusable units.
• Separation of Concerns: Clear division between UI (components/pages), state management (Redux store), and backend services (Firebase).
• Routing for Authentication: Use of PrivateRoute and PublicRoute components for secure navigation.
• Responsive and Modular Styling: Use of SCSS and antd to maintain a consistent UI.