{"id":16409802,"url":"https://github.com/hyperized/simple-amqp2sql","last_synced_at":"2025-02-24T02:23:17.645Z","repository":{"id":85139080,"uuid":"82617297","full_name":"hyperized/simple-amqp2sql","owner":"hyperized","description":"Simple AMQP to SQL demo","archived":false,"fork":false,"pushed_at":"2017-02-21T08:07:01.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-06T00:29:16.422Z","etag":null,"topics":["golang","mysql","rabbitmq-client"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyperized.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-02-21T00:29:14.000Z","updated_at":"2017-02-21T00:33:31.000Z","dependencies_parsed_at":"2023-06-29T11:01:37.764Z","dependency_job_id":null,"html_url":"https://github.com/hyperized/simple-amqp2sql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperized%2Fsimple-amqp2sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperized%2Fsimple-amqp2sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperized%2Fsimple-amqp2sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperized%2Fsimple-amqp2sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperized","download_url":"https://codeload.github.com/hyperized/simple-amqp2sql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240405069,"owners_count":19796119,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["golang","mysql","rabbitmq-client"],"created_at":"2024-10-11T06:21:32.739Z","updated_at":"2025-02-24T02:23:17.630Z","avatar_url":"https://github.com/hyperized.png","language":"Go","readme":"# Simple AMQP to SQL demo\n\n## Setup\n* Ensure you have all your GO paths set up.\n* `go get github.com/hyperized/simple-amqp2sql`\n\n## Environment\nThis demo requires a basic MySQL and RabbitMQ setup.\n\n## Docker stuff\n* `docker run -d --hostname rabbitmq --name rabbitmq -p 15672:5672 -p 8080:15672 rabbitmq:3-management`\n\n* `docker run --name mysql56 -e MYSQL_ROOT_PASSWORD=secret -e MYSQL_ROOT_HOST=172.17.0.1 -p 6603:3306 -d mysql/mysql-server:5.6`\n\n### MySQL\n* `docker exec -it mysql56 mysql -uroot -p`\n\n* Run:\n\n```\nCREATE DATABASE mydb;\n\nuse mydb;\n\nCREATE TABLE mycontent (\n`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY,\nmessage varchar(255) not null,\ncontent varchar(255) not null\n)ENGINE=InnoDB;\n\nexplain mycontent;\n```\n\n### RabbitMQ\n* Browse to: `http://localhost:8080/` (after a few seconds)\n\n* Create a Queue: `myqueue`\n\n* Start the app: `go run amqp2sql.go`\n\n* Publish Message on `myqueue`: `{\"message\": \"Hello\", \"content\": \"Aww yiss!\"}`\n\n* On the DB cli, do: `select * from mycontent;`","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperized%2Fsimple-amqp2sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperized%2Fsimple-amqp2sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperized%2Fsimple-amqp2sql/lists"}