{"id":37208045,"url":"https://github.com/mar-cial/pizza-ui","last_synced_at":"2026-01-14T23:54:44.623Z","repository":{"id":262728083,"uuid":"888167065","full_name":"mar-cial/pizza-ui","owner":"mar-cial","description":"A reusable microservice for dynamic UI component generation, using Templ, easily deployable in cloud-native environments.","archived":false,"fork":false,"pushed_at":"2024-11-13T23:44:56.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-14T00:27:40.765Z","etag":null,"topics":["docker","golang","microservice","template","ui-generator"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mar-cial.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-13T23:40:43.000Z","updated_at":"2024-11-14T00:04:14.000Z","dependencies_parsed_at":"2024-11-14T00:38:18.674Z","dependency_job_id":null,"html_url":"https://github.com/mar-cial/pizza-ui","commit_stats":null,"previous_names":["mar-cial/pizza-ui"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mar-cial/pizza-ui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mar-cial%2Fpizza-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mar-cial%2Fpizza-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mar-cial%2Fpizza-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mar-cial%2Fpizza-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mar-cial","download_url":"https://codeload.github.com/mar-cial/pizza-ui/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mar-cial%2Fpizza-ui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28439584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","golang","microservice","template","ui-generator"],"created_at":"2026-01-14T23:54:44.012Z","updated_at":"2026-01-14T23:54:44.615Z","avatar_url":"https://github.com/mar-cial.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pizza-UI\n\n**Pizza-UI** is a reusable microservice for creating and serving UI components, leveraging [Templ](https://github.com/benbjohnson/templ) to generate templates. This project provides a server running on a specified port via the `UI_PORT` environment variable, offering a customizable user interface setup for other microservices, such as `auth`, `orders`, and more.\n\n## Features\n\n- Templ-based HTML component generation\n- Environment-based configuration for project name and port\n- Ready for containerization and cloud-native deployment\n- Customizable and reusable for multiple applications\n\n## Requirements\n\n- **Go** (latest stable version recommended)\n- **Docker** (optional for containerized deployment)\n\n## Getting Started\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/username/pizza-ui.git\ncd pizza-ui\n\n### 2. Initial Configuration\n\nTo set up the project, define the project name and the port on which it will run. You can configure this through a `.env` file.\n\n1. Copy the example environment file:\n   ```bash\n   cp .env.example .env\n   ```\n\n2. Edit `.env` to set the `PROJECT_NAME` and `UI_PORT` environment variables:\n\n   ```plaintext\n   PROJECT_NAME=pizza-ui\n   UI_PORT=8080\n   ```\n\n   Alternatively, you can directly set these variables in your environment.\n\n### 3. Running the Server\n\nTo start the server, run:\n\n```bash\ngo run main.go\n```\n\nThis will start the server on the port defined by `UI_PORT`. If you haven't set `UI_PORT`, the server defaults to port `8080`.\n\n### 4. Accessing the Application\n\nOnce the server is running, open your web browser and go to:\n\n```\nhttp://localhost:8080\n```\n\nOr use the port you specified in `UI_PORT`.\n\n### 5. Dockerized Deployment (Optional)\n\nTo run the Pizza-UI service as a Docker container:\n\n1. **Build the Docker Image:**\n   ```bash\n   docker build -t pizza-ui .\n   ```\n\n2. **Run the Docker Container:**\n   ```bash\n   docker run -p 8080:8080 -e UI_PORT=8080 pizza-ui\n   ```\n\n   Adjust the `UI_PORT` variable as needed.\n\n### 6. Testing\n\nFor testing, use:\n\n```bash\ngo test ./...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmar-cial%2Fpizza-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmar-cial%2Fpizza-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmar-cial%2Fpizza-ui/lists"}