How garze05/okidokicr works
OkiDokiCR is a public services-catalog website with an administrator interface backed by an Express API. Visitors browse and search the catalog, then view service details; the sampled detail hook fetches service data from the API. Administrators authenticate, manage services and tags, and upload media. The backend routes requests through authentication and controllers to Prisma-backed storage. The README names the website and its stack but documents few capabilities; several front-end pages and API handlers were not sampled, so their internal links are left out.
Main entry points: app.js API router · serviceRoutes.js Service routes · EditService.jsx Service editor · tagRoutes.js Tag routes
Components 26
Public catalog
- Catalog browsing
src/components/landing/catalog/CatalogPage.jsx - Search and filters
src/components/landing/catalog/SearchBar.jsx - Catalog grid
src/components/landing/catalog/CatalogGrid.jsx - Service detail
src/components/landing/catalog/ServiceDetail.jsx - Service data hook
src/hooks/useService.js
Admin interface
- Admin login
src/pages/admin/login.astro - Client auth
src/utils/auth.js - Admin dashboard
src/components/admin/Dashboard.jsx - Service editor
src/components/admin/services/EditService.jsx - Media upload
src/components/admin/shared/FileUpload.jsx - Video input
src/components/admin/shared/VideoInput.jsx - Tag management
src/components/admin/tags/AddTag.jsx
API services
- API router
api/src/app.js - Auth routes
api/src/routes/authRoutes.js - Authentication
api/src/controllers/authController.js - Service routes
api/src/routes/serviceRoutes.js - Service operations
api/src/controllers/serviceController.js - Tag routes
api/src/routes/tagRoutes.js - Tag operations
api/src/controllers/tagController.js - Upload routes
api/src/routes/uploadRoutes.js - Upload handler
api/src/controllers/uploadController.js - JWT middleware
api/src/middlewares/authMiddleware.js
Persistence and media
- Prisma database
api/src/lib/db.js - Cloudinary media
Other components
- Visitor
- Administrator
Connections 28
- Visitor → Catalog browsing: browses
README.md - Catalog browsing → Search and filters: uses
src/components/landing/catalog/CatalogPage.jsx - Catalog browsing → Catalog grid: renders
src/components/landing/catalog/CatalogPage.jsx - Catalog grid → Search and filters: uses
src/components/landing/catalog/CatalogGrid.jsx - Service detail → Service data hook: loads data
src/components/landing/catalog/ServiceDetail.jsx - Service data hook → Service routes: fetches service
src/hooks/useService.js - Administrator → Admin login: signs in
README.md - Admin login → Client auth: uses
- Client auth → API router: posts credentials
src/utils/auth.js - Admin dashboard → Service editor: manages services
- Service editor → Media upload: uses
src/components/admin/services/EditService.jsx - Service editor → Video input: uses
src/components/admin/services/EditService.jsx - Service editor → Service routes: updates service
src/components/admin/services/EditService.jsx - Tag management → Tag routes: manages tags
- API router → Auth routes: mounts
api/src/app.js - API router → Service routes: mounts
api/src/app.js - API router → Tag routes: mounts
api/src/app.js - API router → Upload routes: mounts
api/src/app.js - Auth routes → Authentication: dispatches
api/src/routes/authRoutes.js - Service routes → Service operations: dispatches
api/src/routes/serviceRoutes.js - Tag routes → Tag operations: dispatches
api/src/routes/tagRoutes.js - Upload routes → Upload handler: dispatches
api/src/routes/uploadRoutes.js - Service routes → JWT middleware: protects writes
api/src/routes/serviceRoutes.js - Tag routes → JWT middleware: protects writes
api/src/routes/tagRoutes.js - Upload routes → JWT middleware: requires token
api/src/routes/uploadRoutes.js - Service operations → Prisma database: reads and writes
api/src/controllers/serviceController.js - Tag operations → Prisma database: reads and writes
api/src/controllers/tagController.js - Media upload → Cloudinary media: uploads media