How redward42/web103_unit4_project works
Bolt Bucket is a React car-customization app backed by an Express API and PostgreSQL. Users configure a car, see its calculated price, and submit valid choices; they can then browse saved cars, inspect a car, edit it, or delete it. The client also provides shared API calls, pricing, and feature-combination validation. The README documents these product capabilities; some page implementations were not excerpted, so their page-to-API links rely on the SOURCE INDEX. The API-to-database flow is visible in the controller and database excerpts.
Main entry points: App.jsx Route selection · CarsAPI.jsx Cars API client · CreateCar.jsx Create car · ViewCars.jsx Browse cars
Components 15
Car app
- Route selection
client/src/App.jsx - Navigation
client/src/components/Navigation.jsx - Create car
client/src/pages/CreateCar.jsx - Browse cars
client/src/pages/ViewCars.jsx - Car details
client/src/pages/CarDetails.jsx - Edit car
client/src/pages/EditCar.jsx
Configuration logic
- Price calculation
client/src/utilities/calcPrice.js - Option validation
client/src/utilities/validateOptions.js
Car API
- Cars API client
client/src/services/CarsAPI.jsx - HTTP server
server/server.js - Item routes
server/routes/customRoutes.js - Item operations
server/controllers/customItemsController.js
Persistence
- Database pool
server/config/database.js - PostgreSQL
Other components
- Car builder
Connections 17
- Car builder → Route selection: uses
README.md - Route selection → Navigation: renders
client/src/App.jsx - Route selection → Create car: routes to
client/src/App.jsx - Route selection → Browse cars: routes to
client/src/App.jsx - Route selection → Car details: routes to
client/src/App.jsx - Route selection → Edit car: routes to
client/src/App.jsx - Create car → Price calculation: calculates with
client/src/pages/CreateCar.jsx - Create car → Option validation: validates with
client/src/pages/CreateCar.jsx - Create car → Cars API client: submits through
client/src/pages/CreateCar.jsx - Browse cars → Cars API client: loads through
client/src/pages/ViewCars.jsx - Car details → Cars API client: uses
client/src/pages/CarDetails.jsx - Edit car → Cars API client: loads and updates through
client/src/pages/EditCar.jsx - Cars API client → HTTP server: sends API requests
client/src/services/CarsAPI.jsx - HTTP server → Item routes: mounts
server/server.js - Item routes → Item operations: dispatches to
server/routes/customRoutes.js - Item operations → Database pool: queries via
server/controllers/customItemsController.js - Database pool → PostgreSQL: connects to
server/config/database.js