How nischalneupanee/kitabbid works
KitabBid is a campus C2C textbook marketplace supporting fixed-price purchases and ascending English auctions, with digital-wallet payments and escrowed campus hand-off. The main workflow is students browsing or posting listings, bidding or checking out, paying through a gateway, then verifying physical hand-off. The graph includes catalog, identity, auction, and order/payment stages plus the persistence layer. Some subsystem links are based on README documentation because their implementation was not sampled; unsampled view and controller details are not assumed.
Main entry points: ApplicationDbContext.cs PostgreSQL data · OrdersController.cs Order and hand-off · AuctionController.cs Auction actions · Views Marketplace UI
Components 17
Marketplace experience
- Marketplace UI
Views - Book catalog
Controllers/BooksController.cs - Home discovery
Controllers/HomeController.cs - Book listings
Models/BookListing.cs
Campus identity
- Account access
Controllers/AccountController.cs - Campus profile
Models/ApplicationUser.cs
Auction system
- Auction actions
Controllers/AuctionController.cs - Bids
Models/Bid.cs - Live bid hub
Hubs/AuctionHub.cs - Auction closer
Services/AuctionClosingWorker.cs
Orders and payments
- Order and hand-off
Controllers/OrdersController.cs - Order records
Models/Order.cs - eSewa gateway
Services/EsewaService.cs - Khalti gateway
Services/KhaltiService.cs - Payment providers
Persistence
- PostgreSQL data
Data/ApplicationDbContext.cs
Other components
- Student
Connections 21
- Student → Marketplace UI: uses
README.md - Marketplace UI → Book catalog: requests listings
README.md - Student → Account access: registers or signs in
README.md - Book catalog → PostgreSQL data: queries and saves
Controllers/BooksController.cs - Book catalog → Book listings: creates listings
Controllers/BooksController.cs - Home discovery → PostgreSQL data: queries catalog
Controllers/HomeController.cs - Account access → PostgreSQL data: uses Identity store
Controllers/AccountController.cs - Account access → Campus profile: manages profiles
Controllers/AccountController.cs - Auction actions → PostgreSQL data: reads and writes
Controllers/AuctionController.cs - Auction actions → Bids: records bids
Controllers/AuctionController.cs - Auction actions → Live bid hub: broadcasts bids
README.md - Auction closer → PostgreSQL data: closes auctions
Services/AuctionClosingWorker.cs - Auction closer → Live bid hub: notifies bidders
README.md - Order and hand-off → PostgreSQL data: reads and saves
Controllers/OrdersController.cs - Order and hand-off → Order records: creates and updates
Controllers/OrdersController.cs - Order and hand-off → eSewa gateway: signs and verifies
Controllers/OrdersController.cs - Order and hand-off → Khalti gateway: initiates and verifies
Controllers/OrdersController.cs - eSewa gateway → Payment providers: validates payments
README.md - Khalti gateway → Payment providers: verifies payments
README.md - Student → Order and hand-off: checks out and confirms hand-off
README.md - Marketplace UI → Live bid hub: receives live updates
README.md