How gguibertg/undersounds works
Project type and purpose
• UnderSounds is a full-stack, server-rendered web application written in Python (likely using Flask or a similar microframework).
• Its purpose is to serve as a Bandcamp/Spotify-style prototype where end users can browse, buy, and listen to albums and tracks, and where artists can register, upload, and manage their own content.
File structure
• Top-level files:
• main.py — application entry point and HTTP server launcher
• controller/ — business-logic layer that maps routes/actions to services
• view/ — template layer (HTML Jinja templates) and view.py (template rendering)
• model/ — data layer implementing DAO + DTO + factory patterns
· dao/ — DAO interfaces and MongoDB implementations
· dto/ — simple Python classes representing domain objects
· mongodbConnector, mongodbDAOFactory — DB connection and factory
• Supporting files: Dockerfile/.dockerignore for containerization, requirements.txt, API_KEYS.py for Firebase credentials.
• The pattern is a classical MVC (Model-View-Controller) with a DAO/Factory sub-pattern for data persistence.
README for additional insights
• Requires Python 3.10, uses Firebase for authentication/credentials (credentials.json & API_KEYS.py).
• MongoDB is the primary datastore.
• Execution via “python main.py” to spin up the web server.