Commit Graph

20 Commits

Author SHA1 Message Date
Ryan Chen
bef2577e13 feat: add comprehensive database migration system
- Create migrations/ directory with proper structure
- Add migration runner (migrations/migrate.py) with tracking
- Implement 001_add_description_column.py migration
- Add comprehensive README with usage and best practices
- Support for ordered execution and rollback capabilities
- Integration ready for Docker and CI/CD workflows

The migration system provides:
- Ordered execution by filename (001_, 002_, etc.)
- Applied migration tracking in database
- Idempotent operations (safe to re-run)
- Standalone and batch execution modes
- Comprehensive error handling and logging

Restored description column that was missing after merge.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-08 00:05:37 -04:00
ryan
ed896a2bdf Merge pull request 'feat: Update Docker setup for refactored Flask architecture' (#2) from docker-refactor-updates into main
Reviewed-on: #2
2025-08-08 00:00:03 -04:00
ryan
7deeb681c0 Merge branch 'main' into docker-refactor-updates 2025-08-07 23:59:57 -04:00
Ryan Chen
8814dd8994 perf: reduce Gunicorn workers to 1 for stability
- Change from 4 workers to 1 worker in both Dockerfile and docker-compose.yml
- Helps reduce resource usage and connection reset issues
- Better for single-user or low-traffic deployment scenarios

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-07 23:59:00 -04:00
Ryan Chen
02247340d4 fix: resolve image display issues after refactor
- Fix upload folder path to be relative to Flask app static folder
- Update app initialization to use proper static folder structure
- Change default development port to 5001 to avoid AirPlay conflicts
- Images now display correctly in both public and admin views

The refactored app now properly serves uploaded images from the
correct static file location.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-07 23:56:14 -04:00
ryan
f3c14d649c Merge pull request 'Updating Dockerfile and docker-compose following' (#1) from docker-refactor-updates into main
Reviewed-on: #1
2025-08-07 23:41:21 -04:00
Ryan Chen
b71187009b feat: update Docker setup for refactored app structure
- Update Dockerfile to copy new app/ directory structure
- Fix docker-compose.yml volume paths for app/static/uploads
- Add environment variable support for new config system
- Update migration service to use migrate_session_changes.py
- Add .dockerignore for optimized builds
- Remove obsolete version field from docker-compose.yml
- Create comprehensive README_DOCKER.md documentation

The Docker setup now fully supports the refactored Flask application
with modular structure, authentication, and like system.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-07 23:40:12 -04:00
Ryan Chen
77cea8cbc5 feat: complete codebase refactor with Flask best practices
- Implement application factory pattern with blueprints
- Add modular structure (models, routes, utils, templates)
- Create configuration management system
- Add comprehensive error handling and logging
- Implement cookie-based like system with database migration
- Add proper authentication decorators and session management
- Update .gitignore to exclude database files and OS artifacts

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-07 18:29:15 -04:00
Ryan Chen
918fc91604 yurt 2025-08-07 18:18:36 -04:00
Ryan Chen
8df728530e docs: update docker compose commands to force rebuild 2025-06-13 17:11:56 -04:00
Ryan Chen
5081785dae feat: add description field and migration support 2025-06-13 17:10:00 -04:00
Ryan Chen
1d30809507 feat: add Docker migration service 2025-06-13 17:08:34 -04:00
Ryan Chen
7c62dc8d08 feat: add description field for pet pictures 2025-06-13 17:07:22 -04:00
Ryan Chen
dd9cc42271 chore: update port to 54321 2025-06-13 17:01:00 -04:00
Ryan Chen
59e905162c feat: switch to Gunicorn for production 2025-06-13 16:58:30 -04:00
Ryan Chen
febb1b67f6 feat: add docker-compose configuration 2025-06-13 16:56:08 -04:00
Ryan Chen
57b1bb3ddd fix: specify package structure in pyproject.toml 2025-06-13 16:54:45 -04:00
Ryan Chen
d76640e546 fix: copy README.md in Dockerfile 2025-06-13 16:54:14 -04:00
Ryan Chen
d1aace1c54 fix: add virtual environment setup in Dockerfile 2025-06-13 16:52:31 -04:00
Ryan Chen
bd3265e6a2 yurt 2025-06-13 16:49:51 -04:00