Real-time recipe discovery stream powered by Server-Sent Events. Explore random dishes from cuisines around the world with ingredients, instructions, and video tutorials.
- π΄ Live Streaming β New recipes every 5 seconds via SSE
- π Global Cuisines β Italian, Japanese, Mexican, Indian & more
- π₯ Full Ingredients β Complete ingredient lists with measurements
- π Instructions β Step-by-step cooking directions
βΆοΈ Video Tutorials β YouTube links for visual learners- π·οΈ Tags & Categories β Beef, Seafood, Vegan, Dessert, etc.
- π± Responsive Design β Beautiful on all devices
| Region | Cuisines |
|---|---|
| πͺπΊ Europe | British, French, Italian, Spanish, Greek, Polish |
| π Americas | American, Canadian, Mexican, Jamaican |
| π Asia | Chinese, Japanese, Thai, Indian, Vietnamese, Filipino |
| π Other | Moroccan, Egyptian, Turkish, Kenyan, Tunisian |
Clone the repository:
git clone https://github.com/smart-developer1791/go-recipe-stream
cd go-recipe-streamInitialize dependencies and run:
go mod tidy
go run .Visit: http://localhost:3000
go-recipe-stream/
βββ main.go # Server, SSE handler, API client
βββ go.mod # Go module file
βββ render.yaml # Render deployment config
βββ .gitignore # Git ignore rules
βββ README.md # Documentation
| Component | Technology |
|---|---|
| Backend | Go + Chi router |
| Real-time | Server-Sent Events |
| Frontend | Tailwind CSS |
| API | TheMealDB |
This project uses the free TheMealDB API:
GET https://www.themealdb.com/api/json/v1/1/random.php
No API key required for basic access. Returns random meal with full details.
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β Browser SSE ββββββΆβ Go Server ββββββΆβ TheMealDB β
β Connection βββββββ (Chi + SSE) βββββββ API β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β β
β Every 5 seconds β
βββββββββββββββββββββββββ
β Recipe JSON data β
- Name β Dish title
- Thumbnail β High-quality food photo
- Category β Beef, Chicken, Seafood, Dessert, etc.
- Cuisine β Country/region of origin
- Ingredients β Up to 20 ingredients with measurements
- Instructions β Full cooking directions
- YouTube β Video tutorial link
- Source β Original recipe URL
- Tags β Descriptive tags
| Variable | Default | Description |
|---|---|---|
| PORT | 3000 | Server port |
github.com/go-chi/chi/v5 # Lightweight HTTP router