{"id":17647493,"url":"https://github.com/qneyrat/web-pubsub-example","last_synced_at":"2025-05-07T07:13:09.240Z","repository":{"id":77552400,"uuid":"117243395","full_name":"qneyrat/web-pubsub-example","owner":"qneyrat","description":":rocket: Web pub/sub architecture example","archived":false,"fork":false,"pushed_at":"2018-02-13T23:03:17.000Z","size":346,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-25T22:43:29.715Z","etag":null,"topics":["example","go","postgresql","rabbitmq","symfony","websocket"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/qneyrat.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":"2018-01-12T13:19:34.000Z","updated_at":"2018-02-15T13:16:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"c72f21b1-208c-4e5a-9e30-9def9c13ab7a","html_url":"https://github.com/qneyrat/web-pubsub-example","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/qneyrat%2Fweb-pubsub-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qneyrat%2Fweb-pubsub-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qneyrat%2Fweb-pubsub-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qneyrat%2Fweb-pubsub-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qneyrat","download_url":"https://codeload.github.com/qneyrat/web-pubsub-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242912497,"owners_count":20205675,"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":["example","go","postgresql","rabbitmq","symfony","websocket"],"created_at":"2024-10-23T11:13:36.440Z","updated_at":"2025-03-10T19:31:13.885Z","avatar_url":"https://github.com/qneyrat.png","language":"PHP","readme":"# Web Pub/Sub Architecture\nExample with simple chat\n\n## ARCHI:\n![schema](docs/schema.png)\n\n## Start project:\n* Copy env vars in wsb:\n```\n\u003e $ cp wsb/.env.dist wsb/.env\n```\n* Setup wsb and client (download vendor files):\n```\n\u003e $ go get -u github.com/golang/dep/cmd/dep # if dep is not already installed\n\u003e $ dep ensure\n```\n* Start containers:\n```\n\u003e $ docker-compose up\n```\n* Create database and setup API:\n```\n\u003e $ docker-compose exec php composer install\n\u003e $ docker-compose exec php bin/console doctrine:schema:create\n\u003e $ docker-compose exec php bin/console app:setup\n```\n* Setup RabbitMq:\n```\n\u003e $ docker-compose exec rabbitmq sh /etc/rabbitmq/setup.sh\n```\n\n* Restart containers:\n```\n\u003e $ docker-compose up\n```\n\n## Run CLI Client:\n* Get dependencies:\n```\n\u003e $ cd client\n\u003e $ go get .\n```\n\n* Start Chat with user test1:\n```\n\u003e $ go run main.go auth test1 test1 --api=symfony.dev --ws=localhost:4000\nyo \u003center\u003e\n```\n\n* Start Chat with user test2:\n```\n\u003e $ go run main.go auth test1 test1 --api=symfony.dev --ws=localhost:4000\n\u003cnew message\u003e\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqneyrat%2Fweb-pubsub-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqneyrat%2Fweb-pubsub-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqneyrat%2Fweb-pubsub-example/lists"}