{"id":29354299,"url":"https://github.com/mibracy/goat","last_synced_at":"2026-05-03T21:35:15.024Z","repository":{"id":303336588,"uuid":"1014703951","full_name":"mibracy/goat","owner":"mibracy","description":"The system is built around the idea of providing a solid backend for a ticketing system, with a focus on a clean API and a data model that can be easily adapted to various business needs.","archived":false,"fork":false,"pushed_at":"2026-03-17T01:44:22.000Z","size":296,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-03T21:35:01.523Z","etag":null,"topics":["go","json","mariadb","restful-api","ticketing-system"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/mibracy.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-06T08:44:36.000Z","updated_at":"2025-09-04T16:13:34.000Z","dependencies_parsed_at":"2025-07-07T05:20:00.027Z","dependency_job_id":"1ecbe1fb-6f76-4bc6-87b2-d5df8c1caeae","html_url":"https://github.com/mibracy/goat","commit_stats":null,"previous_names":["mibracy/goat"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mibracy/goat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mibracy%2Fgoat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mibracy%2Fgoat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mibracy%2Fgoat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mibracy%2Fgoat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mibracy","download_url":"https://codeload.github.com/mibracy/goat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mibracy%2Fgoat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32586187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"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":["go","json","mariadb","restful-api","ticketing-system"],"created_at":"2025-07-09T03:12:54.707Z","updated_at":"2026-05-03T21:35:15.020Z","avatar_url":"https://github.com/mibracy.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GOAT - Greatest Of All Ticketing 🐐\n\n![img.png](img.png)\n\n✨ [Live Demo](http://goat.mibracy.duckdns.org) ✨\n\n🐐 is not your average ticking system. Lightweight, modular, and extensible ticketing system built with Go.\nIt's designed to be a foundation for a robust and scalable customer support and issue tracking platform.\nThe project is structured with a clear separation of concerns, making it easy to understand, maintain, and extend. Architecture inspired by YATS\n\n## Core Concepts\n\nThe system is built around the idea of providing a solid backend for a ticketing system, with a focus on a clean API and a data model that can be easily adapted to various business needs.\n## Features\n\n*   **User Management:** Basic CRUD operations for managing users.\n    *   `GET /admin`: List all users.\n    *   `GET /admin/role/{role}`: List users by role (e.g., Admin, Agent, Customer).\n    *   `POST /admin`: Create a new user.\n    *   `GET /admin/{id}`: Get a user by their ID.\n    *   `PUT /admin/update/{id}`: Update a user's information.\n    *   `DELETE /admin/delete/{id}`: Delete a user.\n*   **Customer Management:** Basic CRUD operations for managing customers.\n    *   `GET /admin/customers`: List all customers.\n*   **Ticket Management:** CRUD operations for managing tickets.\n    *   `GET /admin/tickets`: List all tickets.\n    *   `POST /admin/tickets`: Create a new ticket.\n    *   `GET /admin/tickets/{id}`: Get a ticket by its ID.\n    *   `PUT /admin/tickets/{id}`: Update a ticket's information.\n*   **Comment Management:** CRUD operations for managing comments.\n    *   `GET /admin/comments`: List all comments.\n    *   `POST /admin/comments`: Add a new comment to a ticket.\n\n## How to Run\n\n1.  **Prerequisites:**\n    *   Go (version 1.x or higher) installed.\n    *   MariaDB installed.\n2.  **Clone the repository:**\n    ```bash\n    git clone https://github.com/mibracy/goat.git\n    cd goat\n    ```\n2.5. **Create database db_schema.sql**\n\n3.  **Install dependencies:**\n    ```bash\n    go mod tidy\n    ```\n4.  **Run the application:**\n    ```bash\n    go run main.go\n    ```\n\n5.  **Using the HTML Page:**\n    Once the server is running, you can interact with the API's using the provided HTML page.\n    ```bash\n    The server will start on `http://localhost:8420`\n    ```\n\n## Docker\n\nTo build the Docker image:\n```bash\ndocker build -t goat-app .\n```\n\nTo run the Docker container:\n```bash\ndocker run -p 8420:8420 goat-app\n```\n\n### Environment Variables for Database Connection\n\nThe application uses environment variables to connect to the database. You can set the following variables when running the application (e.g., with `docker run -e`):\n\n*   `DB_HOST`: Database host (default: `127.0.0.1`)\n*   `DB_PORT`: Database port (default: `3306`)\n*   `DB_USER`: Database username (default: `casaos`)\n*   `DB_PASSWORD`: Database password (default: `casaos`)\n*   `DB_NAME`: Database name (default: `casaos`)\n\nExample:\n```bash\ndocker run -p 8420:8420 -e DB_HOST=your_database_ip -e DB_USER=your_user -e DB_PASSWORD=your_password -e DB_NAME=your_db_name goat-app\n```\n\n## Future Features\n\n*   **Authentication and Authorization:** Secure user authentication and role-based access control.\n*   **Customer Management:** Expanded CRUD for customer information.\n*   **Email Notifications:** Send email notifications for ticket updates.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmibracy%2Fgoat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmibracy%2Fgoat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmibracy%2Fgoat/lists"}