How paulevensdestima11-gif/moviweb-app works
MoviWeb is a Flask app for maintaining users’ movie collections. Visitors can create users, view a user’s movies, add a title by looking it up through OMDb, and update or delete a movie; results are stored in SQLite and shown in server-rendered pages. The route handlers in app.py coordinate these actions through DataManager, while models.py defines the persisted entities. The template files are listed in the tree and referenced by the routes, but their contents were not sampled; UI form details and styling connections are therefore omitted.
Main entry points: app.py Flask routes · data_manager.py Data manager · templates Server-rendered pages · models.py User and movie models
Components 7
Web application
- Flask routes
app.py - Server-rendered pages
templates
Persistence
- Data manager
data_manager.py - User and movie models
models.py - SQLite database
Movie lookup
- OMDb API
Other components
- Visitor
Connections 7
- Visitor → Flask routes: sends requests
app.py - Flask routes → Data manager: calls
app.py - Flask routes → Server-rendered pages: renders
app.py - Flask routes → OMDb API: looks up titles
app.py - Data manager → User and movie models: queries and saves
data_manager.py - Data manager → SQLite database: reads and writes
data_manager.py - Flask routes → SQLite database: initializes schema
app.py