How omaralabaseery/neuralnetworkco works
This repository combines a bilingual company website and lead-capture/CMS backend with a separate customer portal and role-protected CRM. The public workflow runs from browsing service and content pages to submitting a project inquiry; administrators manage leads, content, and contact settings. The portal and platform implement account and business workflows. Some connections are documented in the README; portal internals were not excerpted, so its UI-to-worker relationship is shown as documented rather than as inspected call flow.
Main entry points: site.tsx Site routing · index.ts D1 access · worker.mjs Portal API worker · app.js Portal and CRM
Components 21
Public website
- Site routing
components/site.tsx - Home capabilities
components/premium-home.tsx - Secondary pages
components/premium-secondary.tsx - Service details
components/service-detail.tsx - Bilingual content
lib/content.ts - UI primitives
components/ui - Project inquiry
components/site.tsx
Website backend
- Lead intake
app/api/leads/route.ts - Admin interface
app/admin/page.tsx - Admin API
app/api/admin/route.ts - Content API
app/api/content/route.ts - D1 access
db/index.ts - Website records
db/schema.ts
Portal and CRM
- Portal and CRM
portal/app.js - Portal sign-in
portal/website.js
Platform services
- Portal API worker
platform/src/worker.mjs - Sessions and roles
platform/src/security.mjs - Request validation
platform/src/validation.mjs
Other components
- Site visitor
- Portal user
- CRM staff
Connections 20
- Site visitor → Site routing: browses
- Site routing → Home capabilities: renders
components/site.tsx - Site routing → Secondary pages: renders
components/site.tsx - Site routing → Service details: renders
components/site.tsx - Site routing → Bilingual content: reads
components/site.tsx - Site routing → UI primitives: uses
- Site visitor → Project inquiry: submits inquiry
README.md - Project inquiry → Lead intake: sends inquiry
README.md - Lead intake → D1 access: stores lead
app/api/leads/route.ts - D1 access → Website records: maps records
db/index.ts - Admin interface → Admin API: manages content and leads
README.md - Admin API → D1 access: reads and updates
app/api/admin/route.ts - Content API → D1 access: reads content
app/api/content/route.ts - Site routing → Content API: fetches content
components/site.tsx - Portal user → Portal sign-in: signs in
README.md - CRM staff → Portal and CRM: uses CRM
README.md - Portal user → Portal and CRM: uses portal
README.md - Portal and CRM → Portal API worker: uses platform API
README.md - Portal API worker → Sessions and roles: uses security helpers
platform/src/worker.mjs - Portal API worker → Request validation: uses validators
platform/src/worker.mjs