How mbnarayn/communise works
This is a Flask local directory for discovering and submitting shop and amenity listings. The main user flow is browsing/searching listings or submitting a listing with contact details and an optional logo. Listings can use local JSON storage or Azure Cosmos DB; logos can be stored locally or in Azure Blob Storage. The sampled source shows the homepage route coordinating listing loading, filtering, pagination, and rendering, and part of the submission and admin logic. Other route relationships are based on README statements or are omitted where implementation was not sampled.
Main entry points: app.py Flask app · listings.json Listing data · index.html Directory page · add_listing.html Listing form
Components 14
Directory web app
- Flask app
app.py - Directory page
templates/index.html - Listing form
templates/add_listing.html - Community pages
templates/community.html - About page
templates/about.html
Listing features
- Browse and search
app.py - Add listing
app.py - Listing admin
app.py
Listing storage
- Listing data
data/listings.json - Azure Cosmos DB
Logo storage
- Logo upload
app.py - Local logo files
static/uploads/logos - Azure Blob Storage
Other components
- Directory visitor
Connections 14
- Directory visitor → Flask app: browses or submits
README.md - Flask app → Browse and search: routes homepage
app.py - Browse and search → Listing data: loads listings
- Browse and search → Directory page: renders page
app.py - Flask app → Add listing: routes submission
app.py - Add listing → Listing form: shows form
README.md - Add listing → Listing data: saves listing
README.md - Add listing → Logo upload: handles logo
README.md - Flask app → Listing admin: manages listings
app.py - Flask app → Community pages: serves community pages
- Flask app → About page: serves about page
- Listing data → Azure Cosmos DB: selects instead
README.md - Logo upload → Local logo files: stores locally
README.md - Logo upload → Azure Blob Storage: uploads optionally
README.md