How mickiie0/senior_project works
This repository presents a fire-and-smoke monitoring system with account registration/login and dashboard, event-history, statistics, and camera-management screens. The visible user flow routes through the React app, authenticates against a Go backend, then loads profile data for protected screens. Several monitoring screens are placeholders, and the README provides no further capability details. Backend implementation files are indexed as read but their contents are not excerpted, so internal backend relationships and storage are not asserted.
Main entry points: App.js Route dispatcher · MainLayout.jsx Authenticated layout · Login.js Login · Register.js Registration
Components 20
Frontend application
- Route dispatcher
frontend/src/App.js - Login
frontend/src/pages/Login.js - Registration
frontend/src/pages/Register.js - Auth form styles
frontend/src/pages/styles.js - Dashboard
frontend/src/pages/Dashboard.js - Event history
frontend/src/pages/EventHistory.js - Statistics
frontend/src/pages/Statistics.js - Camera management
frontend/src/pages/CameraManagement.js - Authenticated layout
frontend/src/components/MainLayout.jsx - Web vitals
frontend/src/reportWebVitals.js
Backend services
- HTTP server entry
backend/main.go - Auth handlers
backend/internal/auth/handler.go - Auth service
backend/internal/auth/service.go - Auth repository
backend/internal/auth/repository.go - Auth model
backend/internal/auth/model.go - JWT handling
backend/internal/auth/jwt.go - Auth middleware
backend/internal/auth/middleware.go - Camera line
backend/camera_line/camera.go
Other components
- User
- Go HTTP API
Connections 19
- User → Route dispatcher: opens
frontend/src/App.js - Route dispatcher → Login: routes to
frontend/src/App.js - Route dispatcher → Registration: routes to
frontend/src/App.js - Route dispatcher → Dashboard: routes to
frontend/src/App.js - Route dispatcher → Event history: routes to
frontend/src/App.js - Route dispatcher → Statistics: routes to
frontend/src/App.js - Route dispatcher → Camera management: routes to
frontend/src/App.js - Login → Go HTTP API: posts login
frontend/src/pages/Login.js - Registration → Go HTTP API: posts registration
frontend/src/pages/Register.js - Dashboard → Go HTTP API: fetches profile
frontend/src/pages/Dashboard.js - Event history → Go HTTP API: fetches profile
frontend/src/pages/EventHistory.js - Statistics → Go HTTP API: fetches profile
frontend/src/pages/Statistics.js - Camera management → Go HTTP API: fetches profile
frontend/src/pages/CameraManagement.js - Login → Auth form styles: uses
frontend/src/pages/Login.js - Registration → Auth form styles: uses
frontend/src/pages/Register.js - Dashboard → Authenticated layout: renders in
frontend/src/pages/Dashboard.js - Event history → Authenticated layout: renders in
frontend/src/pages/EventHistory.js - Statistics → Authenticated layout: renders in
frontend/src/pages/Statistics.js - Camera management → Authenticated layout: renders in
frontend/src/pages/CameraManagement.js