How lecry1/corporate-market works
CorpMarket is an internal employee marketplace for product and service listings, buyer–seller messaging, and transaction reviews. The main flow is employee registration or sign-in, browsing and managing adverts, starting a chat about an advert, exchanging messages, and leaving a review. Profiles expose a user's adverts and received reviews. Django models provide the shared persistence layer. The excerpts show key view-to-form/model calls; route wiring and some subsystems are documented or indexed but not fully sampled, so uncertain links are omitted.
Main entry points: reviews/views.py Review workflows · reviews/models.py Reviews and ratings · chats/views.py Chat workflows · adverts/models.py Adverts and photos
Components 15
Accounts and profiles
- Account workflows
CorpMarket/users/views.py - Account forms
CorpMarket/users/forms.py - Profile adverts and reviews
CorpMarket/users/views.py
Marketplace listings
- Advert workflows
CorpMarket/adverts/views.py - Advert forms
CorpMarket/adverts/forms.py
Chats and deals
- Chat workflows
CorpMarket/chats/views.py - Message forms
CorpMarket/chats/forms.py
Reviews and ratings
- Review workflows
CorpMarket/reviews/views.py - Review forms
CorpMarket/reviews/forms.py - Rating signals
CorpMarket/reviews/signals.py
Shared persistence
- User accounts
CorpMarket/users/models.py - Adverts and photos
CorpMarket/adverts/models.py - Chats and messages
CorpMarket/chats/models.py - Reviews and ratings
CorpMarket/reviews/models.py
Other components
- Employee
Connections 20
- Employee → Account workflows: register or sign in
- Account workflows → Account forms: validates with
CorpMarket/users/views.py - Account workflows → User accounts: creates or updates
CorpMarket/users/views.py - Employee → Advert workflows: browse listings
- Advert workflows → Advert forms: validates with
CorpMarket/adverts/views.py - Advert workflows → Adverts and photos: queries and saves
CorpMarket/adverts/views.py - Employee → Chat workflows: contact listing party
- Chat workflows → Message forms: validates messages
CorpMarket/chats/views.py - Chat workflows → Chats and messages: creates and reads
CorpMarket/chats/views.py - Chat workflows → Adverts and photos: loads advert
CorpMarket/chats/views.py - Employee → Review workflows: submit or browse reviews
- Review workflows → Review forms: validates with
CorpMarket/reviews/views.py - Review workflows → Reviews and ratings: creates and queries
CorpMarket/reviews/views.py - Review workflows → Chats and messages: checks chat participation
CorpMarket/reviews/views.py - Review workflows → Adverts and photos: loads advert reviews
CorpMarket/reviews/views.py - Profile adverts and reviews → Adverts and photos: prefetches adverts
CorpMarket/users/views.py - Profile adverts and reviews → Reviews and ratings: prefetches reviews
CorpMarket/users/views.py - Reviews and ratings → Chats and messages: validates shared chat
CorpMarket/reviews/models.py - Reviews and ratings → User accounts: updates ratings
- Rating signals → Reviews and ratings: observes reviews
CorpMarket/reviews/signals.py