How wildcodeschool-2025-09/p3-0526-remote-impulsion works
This repository is a React–Express–MySQL teaching scaffold, not a fully implemented item storefront. Its demonstrated item workflow is an HTTP request routed to an item action, which reads or creates item data through a repository and database pool; the React app currently renders a static welcome screen. The README describes the intended client-to-server flow and browse/read/add API, but no client fetcher is implemented in the sampled files. Migration, seeding, and development tooling are omitted from this runtime map.
Main entry points: app.ts Express app · main.tsx Client router · router.ts API routes · main.ts Server startup
Components 12
Web client
- Welcome UI
client/src/App.tsx - Client router
client/src/main.tsx
HTTP server
- Server startup
server/src/main.ts - Connection check
server/database/checkConnection.ts - Express app
server/src/app.ts - API routes
server/src/router.ts
Item data
- Item actions
server/src/modules/item/itemActions.ts - Item repository
server/src/modules/item/itemRepository.ts - MySQL pool
server/database/client.ts - MySQL database
server/database/schema.sql
Other components
- Visitor
- HTTP client
Connections 11
- Visitor → Client router: opens app
client/src/main.tsx - Client router → Welcome UI: renders
client/src/main.tsx - HTTP client → API routes: sends HTTP
README.md - Server startup → Express app: starts
server/src/main.ts - Server startup → Connection check: checks connection
server/src/main.ts - Express app → API routes: mounts
server/src/app.ts - API routes → Item actions: routes requests
server/src/router.ts - Item actions → Item repository: calls
server/src/modules/item/itemActions.ts - Item repository → MySQL pool: queries
server/src/modules/item/itemRepository.ts - MySQL pool → MySQL database: reads and writes
README.md - Express app → Client router: serves built client
server/src/app.ts