How dnwits/projecte_entorns works
Project type and purpose
• This is a full-stack, client-server cinema reservation system consisting of:
• A Python CLI “frontend” (clientConsola.py)
• A Flask-based RESTful “backend” (server.py + DAO layer)
• A MySQL database (cinema.sql + inserts.sql)
• Users can view showtimes, select seats and make/manage reservations. Authentication is JWT-based.
File structure
Top-level folders/files:
• documentacio/ – use cases and endpoint descriptions
• webservice/ – all server & client code, DAO, auth & hashing, config, tests
• cinema.sql & inserts.sql – DB schema & seed data
• README.md – project overview & tech stack
Key architectural elements:
• webservice/server.py exposes REST endpoints (Flask)
• webservice/DAO*.py contains data-access objects for Pelicula and Usuari
• webservice/hash*.py implements password hashing & JWT
• webservice/clientConsola.py is the CLI client sending HTTP requests to the server
• MySQL runs locally; server_config.py holds connection settings
README for additional insights
• Backend: Python + Flask, JWT auth, MySQL on localhost
• Frontend: Python CLI
• No external APIs, no cloud components
• Layers: Presentation (CLI), Service/API (Flask), Data (DAO → MySQL)