Final roadmap - dbsandis/TwiligtApp GitHub Wiki
That’s an excellent and pragmatic approach: • Option A (Lightsail for development) gives you a low-cost, full-access environment to build and test everything. • Then, when you’re ready for real traffic, Option B (ECS Fargate + RDS) will give you the scalability and resilience you need in production.
⸻
Next Steps: Option A (Development on Lightsail)
-
Lightsail Setup • Launch Ubuntu instance • Install Python, Django, Gunicorn • Set up PostgreSQL (local or RDS) • Secure server: UFW, SSL (Let’s Encrypt), fail2ban • Install Nginx + Gunicorn for serving Django
-
WordPress SSO Auth • Use a plugin like JWT Auth for WP REST API • On Django side, implement a JWT middleware to authenticate incoming requests
-
App Development • Build financial planning modules • Store user data in RDS/PostgreSQL • Use Django REST Framework + HTMX or Vue/React • Start exporting to PDF (WeasyPrint)
-
Readiness for Migration
Keep these things modular and ECS-ready: • Use .env files for config • Separate static/media storage from app (consider S3 now) • Avoid storing sessions or files locally
⸻
Then Later: Migrate to ECS for Production
I’ll prepare you a Lightsail-to-ECS migration checklist if you’d like, so the transition will be smooth when the time comes.
Would you like a starter setup script for your Django dev server on Lightsail?