The individual faced challenges in managing their app while adding components like Food Entry, Database display, Chart, Spreadsheet, and AI analysis.
They refactored their app by separating Flask components (Backend) from HTML/CSS pages (Front end) for better organization.
The individual is now looking to deploy their app on a hosting service for faster performance than OnRender, which takes up to a minute to load.
They plan to deploy the front end and backend separately to have a standalone backend with an API for the front end to call.
Migration suggestions include moving /templates HTML files to a separate repo, using JS fetch calls to Flask API, returning jsonify() instead of HTML in Flask routes, deploying the frontend to GitHub Pages, deploying Flask backend to Railway or Fly.io, and setting up CORS on Flask for frontend to call backend.