Skip to content

feat: Docker deployment#2

Open
FrankLaurance wants to merge 4 commits intoryanuo:mainfrom
FrankLaurance:main
Open

feat: Docker deployment#2
FrankLaurance wants to merge 4 commits intoryanuo:mainfrom
FrankLaurance:main

Conversation

@FrankLaurance
Copy link

This pull request introduces comprehensive improvements for Docker deployment, enhances error handling for fetching recipe data, and updates the user interface to provide better feedback during data loading or errors. The most important changes are grouped below.

Dockerization & Deployment:

  • Added a new GitHub Actions workflow (.github/workflows/publish-ghcr.yml) to automatically build and publish Docker images to GitHub Container Registry (GHCR) on push to main or tags, enabling easier deployment and distribution.
  • Introduced a docker-compose.yml file for simplified local Docker deployment, allowing configuration of environment variables and exposing the application on port 3000.
  • Updated the Dockerfile to set production environment variables, expose port 3000, and add an OpenContainers label for source reference.

Documentation:

  • Expanded README.md with detailed instructions for Docker deployment (both local build and pulling from GHCR), including example commands and explanations.

Recipe Data Fetching & Error Handling:

  • Refactored server/routes/api/recipes.ts to always fetch the public menu from a fixed URL, implementing retry logic and error handling with logging and timeouts to improve reliability.
  • Enhanced the recipe fetch call in app/components/Eat.vue to include retries, timeout, and to expose loading/error states to the UI.
  • Updated the UI in app/components/Eat.vue to display loading, error, and empty data states with appropriate messages and a reload button, improving user experience during data fetch issues.
  • Added a check in the random selection logic to prevent operation if recipe data is not loaded, with a warning message.

Other:

  • Minor update to a path in README.md to reflect the new location of the recipe API route.

@netlify
Copy link

netlify bot commented Jan 19, 2026

Deploy Preview for wtoeat ready!

Name Link
🔨 Latest commit d1fdd97
🔍 Latest deploy log https://app.netlify.com/projects/wtoeat/deploys/6976d77e10d58d0008e4e8ff
😎 Deploy Preview https://deploy-preview-2--wtoeat.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments