✨ Major Features Added: - Complete magical theming and rebranding from LifeRPG to The Wizard's Grimoire - Production-grade React frontend with Tailwind CSS v4 and magical aesthetics - Comprehensive analytics dashboard with Recharts integration (ScryingPortal) - Push notifications system with PWA service worker support - Drag & drop functionality using @dnd-kit for habit reordering - Social features with friends system and leaderboards - Performance optimization tools and monitoring - Mobile app enhancement with PWA installation support 🏗️ Technical Infrastructure: - Advanced service worker with offline support and background sync - Zustand state management for scalable application state - Production-ready UI component system with enhanced Button, Card, Input - Progressive Web App (PWA) with manifest and app installation - FastAPI backend with comprehensive API endpoints - Docker containerization and CI/CD pipeline setup 📱 Progressive Web App Features: - Offline functionality with intelligent caching - Push notification support for habit reminders - App installation on mobile and desktop platforms - Background sync for offline data management - Performance monitoring and optimization tools 🎨 User Experience: - Magical wizard/grimoire theming throughout application - Responsive design optimized for all device sizes - Drag & drop habit management with smooth animations - Interactive analytics with multiple chart types - Social connectivity with friends and competitive features - Comprehensive notification and performance settings 🔧 Developer Experience: - Modern development stack with Vite and React - Comprehensive testing setup and CI/CD pipelines - Code quality tools with pre-commit hooks - Docker development environment - Detailed documentation and implementation guides This represents a complete transformation from prototype to production-ready application with enterprise-grade features and magical user experience.
52 lines
1.7 KiB
Makefile
52 lines
1.7 KiB
Makefile
SHELL := /bin/bash
|
|
|
|
.PHONY: help db-upgrade db-stamp alembic-rev
|
|
.PHONY: help db-upgrade db-stamp alembic-rev alembic-current alembic-history drift-check pre-commit-install pre-commit-run
|
|
|
|
help:
|
|
@echo "Targets:"
|
|
@echo " db-upgrade - Run Alembic upgrade head (uses DATABASE_URL)"
|
|
@echo " db-stamp - Stamp DB as at head (uses DATABASE_URL)"
|
|
@echo " alembic-rev MSG= - Create auto migration with message"
|
|
@echo " alembic-current - Show current DB revision"
|
|
@echo " alembic-history - Show migration history"
|
|
@echo " drift-check - Compare DB schema vs models (non-zero exit on diff)"
|
|
@echo " pre-commit-install - Install git pre-commit hooks"
|
|
@echo " pre-commit-run - Run pre-commit on all files"
|
|
|
|
db-upgrade:
|
|
@DATABASE_URL?=sqlite:///./modern_dev.db
|
|
@export PYTHONPATH=$(PWD); \
|
|
alembic -c modern/alembic.ini upgrade head
|
|
|
|
db-stamp:
|
|
@DATABASE_URL?=sqlite:///./modern_dev.db
|
|
@export PYTHONPATH=$(PWD); \
|
|
alembic -c modern/alembic.ini stamp head
|
|
|
|
alembic-rev:
|
|
@if [ -z "$(MSG)" ]; then echo "Usage: make alembic-rev MSG=your message"; exit 1; fi
|
|
@export PYTHONPATH=$(PWD); \
|
|
alembic -c modern/alembic.ini revision --autogenerate -m "$(MSG)"
|
|
|
|
alembic-current:
|
|
@export PYTHONPATH=$(PWD); \
|
|
alembic -c modern/alembic.ini current
|
|
|
|
alembic-history:
|
|
@export PYTHONPATH=$(PWD); \
|
|
alembic -c modern/alembic.ini history --verbose
|
|
|
|
drift-check:
|
|
@export PYTHONPATH=$(PWD); \
|
|
python scripts/alembic_check.py
|
|
|
|
pre-commit-install:
|
|
@python -m pip install pre-commit >/dev/null 2>&1 || true
|
|
@pre-commit install
|
|
@echo "pre-commit hooks installed"
|
|
|
|
pre-commit-run:
|
|
@python -m pip install pre-commit >/dev/null 2>&1 || true
|
|
@pre-commit run --all-files
|