How mehmetdenizuckan/back-end_project works
This repository is a Flask-based website with account registration and login, session-backed user pages, and image/file uploads that can use local storage or S3. The main workflow is a visitor submitting account details, authentication against PostgreSQL, then uploading an image whose URL is saved for display. It also contains a separate SQLAlchemy/SQLite Flask implementation and template-era PHP form handlers. The README is empty, and app.py and several runtime files were not sampled, so their wiring is not inferred.
Main entry points: db.py User data access · scripts.js Browser form scripts · file_operations.py Upload handling · routes.py Page routes
Components 15
Web application
- Page routes
routes.py - Standalone app
main.py
Accounts and sessions
- Account authentication
auth.py - User data access
db.py - Runtime configuration
config.py
File uploads
- Upload handling
file_operations.py - S3 uploader
S3_bucket_uploader.py
Landing-page forms
- Browser form scripts
static/js/scripts.js - Signup mail handler
static/php/signupform-process.php - Login mail handler
static/php/loginform-process.php - Newsletter handler
static/php/newsletterform-process.php
Other components
- Visitor
- PostgreSQL
- Amazon S3
- Mail service
Connections 17
- Visitor → Page routes: requests pages
routes.py - Account authentication → User data access: authenticates and registers
auth.py - Page routes → User data access: loads image URL
routes.py - User data access → Runtime configuration: reads database settings
db.py - User data access → PostgreSQL: queries user records
db.py - Visitor → Account authentication: submits credentials
auth.py - Visitor → Upload handling: submits file
file_operations.py - Upload handling → User data access: saves image URL
file_operations.py - Upload handling → S3 uploader: delegates upload
file_operations.py - S3 uploader → Amazon S3: uploads and signs URL
S3_bucket_uploader.py - Visitor → Browser form scripts: submits landing form
static/js/scripts.js - Browser form scripts → Signup mail handler: posts signup data
static/js/scripts.js - Browser form scripts → Login mail handler: posts login data
static/js/scripts.js - Browser form scripts → Newsletter handler: posts newsletter data
static/js/scripts.js - Signup mail handler → Mail service: sends form email
static/php/signupform-process.php - Login mail handler → Mail service: sends form email
static/php/loginform-process.php - Newsletter handler → Mail service: sends form email
static/php/newsletterform-process.php