How dotnodepoint-dnp/dnp-tech-company works
This is a company website and inquiry-management application: visitors explore services and careers, then submit contact, meeting, partnership, or job-application information; administrators manage those records and site content. The runtime is organized around Next.js pages and API routes, with MongoDB models behind the routes and cookie/JWT authentication for administrative operations. The provided excerpts show selected API-to-model and page-component relationships; several admin and API implementations are indexed but unsampled, so their connections are left unverified.
Main entry points: admin Admin console · db.js MongoDB connection · route.js Application endpoints · page.tsx Careers page
Components 33
Public website
- Home
app/page.tsx - About
app/about/page.tsx - Services
app/services/page.tsx - Products
app/products/page.tsx - Careers page
app/careers/page.tsx - Navigation
app/components/Navbar.tsx - Footer
app/components/Footer.tsx
Visitor requests
- Contact form
app/contact/page.tsx - Meeting request
app/meeting/page.tsx - Partnership request
app/partnership/page.tsx - Job application
app/careers/page.tsx
Administration
- Admin console
app/admin - User login
app/login/page.tsx - User dashboard
app/dashboard/page.tsx
API and persistence
- Next API routes
app/api - Authentication routes
app/api/auth - Admin routes
app/api/admin - MongoDB connection
app/config/db.js - Career endpoints
app/api/careers/route.js - Application endpoints
app/api/applications/route.js - Meeting endpoints
app/api/meetings/route.js - Partnership endpoint
app/api/partnership/route.js - Query endpoints
app/api/queries/route.js - Product endpoints
app/api/products/route.js - Career records
app/config/models/Career.js - Applications
app/config/models/Application.js - Meeting requests
app/config/models/Meeting.js - Partnership requests
app/config/models/Partnership.js - Contact queries
app/config/models/Query.js - Product records
app/config/models/product.js - Admin and user records
app/config/models/Admin.js
Other components
- Site visitor
- Administrator
Connections 47
- Site visitor → Home: visits
app/page.tsx - Site visitor → About: visits
app/about/page.tsx - Site visitor → Services: visits
app/services/page.tsx - Site visitor → Products: visits
- Site visitor → Careers page: visits
app/careers/page.tsx - Home → Navigation: renders
app/page.tsx - Home → Footer: renders
app/page.tsx - About → Navigation: renders
app/about/page.tsx - About → Footer: renders
app/about/page.tsx - Services → Navigation: renders
app/services/page.tsx - Services → Footer: renders
app/services/page.tsx - Careers page → Navigation: renders
app/careers/page.tsx - Careers page → Footer: renders
app/careers/page.tsx - Site visitor → Contact form: submits query
app/contact/page.tsx - Site visitor → Meeting request: requests meeting
- Site visitor → Partnership request: requests partnership
- Careers page → Job application: opens form
app/careers/page.tsx - Job application → Application endpoints: submits application
- Contact form → Query endpoints: posts query
- Meeting request → Meeting endpoints: posts request
- Partnership request → Partnership endpoint: posts inquiry
- Administrator → Admin console: manages content
- Administrator → User login: signs in
- User login → Authentication routes: authenticates
- Admin console → Admin routes: uses routes
- Admin console → Career endpoints: manages vacancies
- Admin console → Application endpoints: reviews applications
- Admin console → Meeting endpoints: manages meetings
- Admin console → Partnership endpoint: manages inquiries
- Admin console → Query endpoints: manages queries
- Admin console → Product endpoints: manages products
- User dashboard → Authentication routes: uses session
- Career endpoints → MongoDB connection: connects
app/api/careers/route.js - Career endpoints → Career records: reads and writes
app/api/careers/route.js - Application endpoints → MongoDB connection: connects
app/api/applications/route.js - Application endpoints → Career records: checks vacancy
app/api/applications/route.js - Application endpoints → Applications: reads and writes
app/api/applications/route.js - Meeting endpoints → MongoDB connection: connects
app/api/meetings/route.js - Meeting endpoints → Meeting requests: reads and writes
app/api/meetings/route.js - Partnership endpoint → MongoDB connection: connects
app/api/partnership/route.js - Partnership endpoint → Partnership requests: reads and writes
app/api/partnership/route.js - Query endpoints → MongoDB connection: connects
app/api/queries/route.js - Query endpoints → Contact queries: reads and writes
app/api/queries/route.js - Product endpoints → MongoDB connection: connects
app/api/products/route.js - Product endpoints → Product records: uses records
- Admin routes → MongoDB connection: uses connection
- Authentication routes → Admin and user records: uses accounts