How zulangga053/prak-dis-dec works
This repository is a collection of learning exercises and example applications, rather than one integrated product. The visible workflows include distributed-systems demonstrations, database examples, a BlackSheep web application, a Flask blog, and small service examples. The BlackSheep app configures services and request features before serving; the Flask app registers authentication, blog, and database functionality. Several chapter READMEs and subsystems were not provided, so their capabilities and connections are not expanded beyond what the tree and excerpts support.
Main entry points: main.py Application Setup · __init__.py App Factory · db.py Database Access · blog.py Blog Operations
Components 26
Distributed Systems
- Concurrency Demos
03 - Raft Example
03/raft.py - Raft Module
03/raft_module.py - Vector Clocks
03/vector_clock.py - Clock Demo
03/vclocks.py
BlackSheep Example
- Web Requests
05/workspace-05/blacksheep_lb/app/controllers - Application Setup
05/workspace-05/blacksheep_lb/app/main.py - Service Registration
05/workspace-05/blacksheep_lb/app/services.py - Settings
05/workspace-05/blacksheep_lb/app/settings.py - Authentication Setup
05/workspace-05/blacksheep_lb/app/auth.py - Error Handlers
05/workspace-05/blacksheep_lb/app/errors.py - Template Setup
05/workspace-05/blacksheep_lb/app/templating.py - Domain Models
05/workspace-05/blacksheep_lb/domain/common.py - Failure Detection
05/workspace-05/failure-detection - Heartbeat Check
05/workspace-05/heartbeat/check-server.py
Flask Blog
- Blog User
- App Factory
07/flask-app/flaskr/__init__.py - Authentication
07/flask-app/flaskr/auth.py - Blog Operations
07/flask-app/flaskr/blog.py - Database Access
07/flask-app/flaskr/db.py - SQLite Store
07/flask-app/instance/flaskr.sqlite - Blog Schema
07/flask-app/flaskr/schema.sql
Database Examples
- Client and Schema
02/workspace-01 - SQL Examples
04 - Service Examples
08/src
Other components
- Learner
Connections 24
- Learner → Client and Schema: studies
- Learner → Concurrency Demos: studies
- Learner → Raft Example: studies
- Learner → Vector Clocks: studies
- Learner → SQL Examples: studies
- Learner → Web Requests: uses
- Learner → App Factory: uses
- Web Requests → Application Setup: routes through
- Application Setup → Service Registration: configures
05/workspace-05/blacksheep_lb/app/main.py - Service Registration → Settings: loads
05/workspace-05/blacksheep_lb/app/services.py - Application Setup → Authentication Setup: configures
05/workspace-05/blacksheep_lb/app/main.py - Application Setup → Error Handlers: configures
05/workspace-05/blacksheep_lb/app/main.py - Application Setup → Template Setup: configures
05/workspace-05/blacksheep_lb/app/main.py - Template Setup → Settings: uses
05/workspace-05/blacksheep_lb/app/templating.py - Application Setup → Domain Models: uses
- Blog User → App Factory: accesses
- App Factory → Authentication: registers
07/flask-app/flaskr/__init__.py - App Factory → Blog Operations: registers
07/flask-app/flaskr/__init__.py - App Factory → Database Access: initializes
07/flask-app/flaskr/__init__.py - Authentication → Database Access: queries
07/flask-app/flaskr/auth.py - Blog Operations → Authentication: checks login
07/flask-app/flaskr/blog.py - Blog Operations → Database Access: queries and updates
07/flask-app/flaskr/blog.py - Database Access → SQLite Store: connects
- Database Access → Blog Schema: loads schema
07/flask-app/flaskr/db.py