How christian-ittech/app_test works
NdakoTech is a housing-search platform for Brazzaville and Pointe-Noire, with a React client and a read-only Express/PostgreSQL API. The main user flow is to choose a city and filters, load matching available homes, open a listing’s detailed sheet and photos, and contact its manager when available. The API also provides neighborhoods and an unfiltered catalog. Publication and registration pages are routed in the client, but the documented API is read-only; sampled evidence does not establish a submission workflow. Some links reflect README or SOURCE INDEX references rather than inspected implementations.
Main entry points: App.jsx Page router · FichePage.jsx Listing detail · app.js Express app · logementRoute.js Housing routes
Components 27
Client experience
- Page router
client/src/App.jsx - Shared layout
client/src/components/Layout.jsx - Home search
client/src/pages/HomePage.jsx - Filter form
client/src/components/SearchForm.jsx - Search results
client/src/pages/ResultatsPage.jsx - Listing card
client/src/components/LogementCard.jsx - Listing detail
client/src/pages/FichePage.jsx - Photo gallery
client/src/components/PhotoGallery.jsx - Listing badges
client/src/components/Badge.jsx - Display formatting
client/src/utils/format.js - Publish page
client/src/pages/PublierPage.jsx - Registration page
client/src/pages/InscriptionPage.jsx - Housing API client
client/src/api/logements.js
API routing
- Express app
server/src/app.js - API route index
server/src/routes/index.js - Housing routes
server/src/routes/logementRoute.js - Neighborhood routes
server/src/routes/quartierRoute.js - Search validation
server/src/middlewares/validateRecherche.js - ID validation
server/src/middlewares/validateId.js - Error responses
server/src/middlewares/errorHandler.js
Housing domain
- Housing controller
server/src/controllers/logementController.js - Neighborhood controller
server/src/controllers/quartierController.js - Housing queries
server/src/models/logementModel.js
Persistence
- PostgreSQL pool
server/src/config/database.js - Housing database
server/schema.sql - Listing images
server/src/public/images
Other components
- Home seeker
Connections 33
- Home seeker → Page router: uses
client/src/App.jsx - Page router → Shared layout: wraps pages
client/src/App.jsx - Page router → Home search: routes to
client/src/App.jsx - Page router → Search results: routes to
client/src/App.jsx - Page router → Listing detail: routes to
client/src/App.jsx - Page router → Publish page: routes to
client/src/App.jsx - Page router → Registration page: routes to
client/src/App.jsx - Home search → Filter form: renders
client/src/pages/HomePage.jsx - Filter form → Housing API client: loads neighborhoods
client/src/components/SearchForm.jsx - Filter form → Search results: navigates to
client/src/components/SearchForm.jsx - Search results → Housing API client: requests listings
client/src/pages/ResultatsPage.jsx - Search results → Listing card: renders
client/src/pages/ResultatsPage.jsx - Listing card → Listing badges: renders
client/src/components/LogementCard.jsx - Listing card → Display formatting: formats display
client/src/components/LogementCard.jsx - Listing detail → Housing API client: loads listing
client/src/pages/FichePage.jsx - Listing detail → Photo gallery: renders photos
client/src/pages/FichePage.jsx - Listing detail → Listing badges: renders
client/src/pages/FichePage.jsx - Listing detail → Display formatting: formats display
client/src/pages/FichePage.jsx - Housing API client → Express app: calls API
README.md - Express app → API route index: mounts API
server/src/app.js - Express app → Error responses: handles errors
server/src/app.js - Express app → Listing images: serves images
server/src/app.js - API route index → Housing routes: mounts
server/src/routes/index.js - API route index → Neighborhood routes: mounts
server/src/routes/index.js - Housing routes → Search validation: validates search
server/src/routes/logementRoute.js - Housing routes → ID validation: validates ID
server/src/routes/logementRoute.js - Housing routes → Housing controller: dispatches
server/src/routes/logementRoute.js - Neighborhood routes → Neighborhood controller: dispatches
server/src/routes/quartierRoute.js - Search validation → Housing controller: passes filters
README.md - Housing controller → Housing queries: queries listings
server/src/controllers/logementController.js - Neighborhood controller → Housing queries: queries neighborhoods
server/src/controllers/quartierController.js - Housing queries → PostgreSQL pool: executes SQL
server/src/models/logementModel.js - PostgreSQL pool → Housing database: connects to