How twilio/stashboard works
Main Components
a. Client Layer:
• Web Browser Interface
• API Consumers
• Status Widget Consumers
b. Application Layer (Google App Engine):
• Frontend Controllers (handlers/)
• Admin Interface
• REST API
• Authentication System
• Template Engine
c. Data Layer:
• Google App Engine Datastore
• Static Assets Storage
Key Architectural Elements
a. MVC Pattern:
• Models (models.py)
• Views (templates/)
• Controllers (handlers/)
b. RESTful Architecture:
• API endpoints (handlers/api.py)
• Resource handlers (handlers/restful.py)
Component Relationships
[Client Layer]
• ↓↑
[Load Balancer / App Engine Frontend]
• ↓↑
[Application Layer]
• [Web Controllers]
• Site Handler (handlers/site.py)
• Admin Handler (handlers/admin.py)
• API Handler (handlers/api.py)
• [Service Layer]
• Authentication (utils/authorized.py)
• OAuth2 Support (contrib/oauth2)
• Utils (utils/)
• [Template Engine]
• Jinja2 Templates (templates/)
• [Static Assets]
• CSS (static/css)
• JavaScript (static/js)
• Images (static/images)
• ↓↑
[Data Layer]
• App Engine Datastore
• Static File Storage
Additional Elements
• A section for background tasks (cron.yaml)
• OAuth2 authentication flow
• API versioning structure
• Status image generation system (contrib/status_images.py)