How omshinde04/smart-inspection works
Smart Inspection is presented as a digital-inspection and monitoring product, but the sampled runtime implements a marketing site, account registration/login, JWT authentication, and user persistence. The principal implemented workflow is account registration or login, followed by authenticated-user lookup; no inspection execution or monitoring data backend is evidenced, so those capabilities remain represented only by the landing-page preview. Dashboard and form pages are present in the tree but their runtime connections were not shown.
Main entry points: page.js Landing page · auth Auth endpoints · mongodb.js DB connector · route.js Logout endpoint
Components 22
Web experience
- Landing page
app/page.js - About section
app/components/home/About.js - Feature section
app/components/home/Features.js - How it works
app/components/home/HowItWorks.js - Monitoring preview
app/components/home/MonitoringPreview.js - Hero section
app/components/home/Hero.js - Trust bar
app/components/home/TrustBar.js - Navigation
app/components/home/Navbar.js - Footer and CTA
app/components/home/Footer.js - Automation section
app/components/home/Automation.js - CTA section
app/components/home/CTA.js
Account access
- Login page
app/login/page.js - Registration page
app/register/page.js - Dashboard page
app/dashboard/page.js - Auth endpoints
app/api/auth - Logout endpoint
app/api/auth/logout/route.js - Database check
app/api/test-db/route.js
Auth and persistence
- JWT utilities
lib/auth.js - DB connector
lib/mongodb.js - User model
models/User.js
Other components
- Visitor
- MongoDB
Connections 14
- Landing page → Navigation: renders
app/page.js - Landing page → Hero section: renders
app/page.js - Landing page → Trust bar: renders
app/page.js - Landing page → About section: renders
app/page.js - Landing page → Feature section: renders
app/page.js - Landing page → How it works: renders
app/page.js - Landing page → Monitoring preview: renders
app/page.js - Landing page → Footer and CTA: renders
app/page.js - Auth endpoints → DB connector: connects via
app/api/auth/register/route.js - Auth endpoints → User model: queries
app/api/auth/register/route.js - Auth endpoints → JWT utilities: creates/verifies tokens
app/api/auth/login/route.js - Logout endpoint → Visitor
- Database check → DB connector: connects via
app/api/test-db/route.js - DB connector → MongoDB: connects
lib/mongodb.js