How alexeyv29/laptop-store-dashboard works
Laptop Store Dashboard is a catalog-browsing application backed by an Express API and MongoDB Atlas. The main user flow loads laptop records into the React dashboard, where users search and filter the catalog and view matching laptop details. Separately, a seed script imports the supplied CSV dataset into the database. The graph distinguishes the client, API, and data responsibilities. The README documents the API and seeding workflow; source excerpts show the dashboard fetch, server query, model, and seed operations.
Main entry points: server.ts Laptop API · Dashboard.tsx Dashboard · seed.ts CSV seeder · Laptop.js Laptop model
Components 8
API service
- Laptop API
server.ts
Laptop data
- Laptop model
models/Laptop.js - MongoDB Atlas
- CSV seeder
seed.ts - Laptop dataset
dataset/laptop_scrap_data.csv
Other components
- Catalog user
Connections 9
- Catalog user → Dashboard: searches and filters
src/components/Dashboard.tsx - Dashboard → Root app: renders through
src/App.tsx - Dashboard → Laptop API: fetches laptops
src/components/Dashboard.tsx - Laptop API → Dashboard: returns JSON
README.md - Laptop API → Laptop model: queries
server.ts - Laptop API → MongoDB Atlas: connects to
server.ts - CSV seeder → Laptop dataset: reads rows
seed.ts - CSV seeder → Laptop model: deletes and inserts
seed.ts - CSV seeder → MongoDB Atlas: connects to
seed.ts