{"id":28169891,"url":"https://github.com/zavalit/eventsourcing_rxjs_demo","last_synced_at":"2025-05-15T16:18:54.173Z","repository":{"id":38250302,"uuid":"270261457","full_name":"zavalit/eventsourcing_rxjs_demo","owner":"zavalit","description":"Eventsourcing Demo App","archived":false,"fork":false,"pushed_at":"2022-12-13T00:23:04.000Z","size":130,"stargazers_count":5,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-08-04T14:22:13.672Z","etag":null,"topics":["eventsourcing","redis","rxjs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/zavalit.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}},"created_at":"2020-06-07T09:51:08.000Z","updated_at":"2023-08-04T14:22:13.672Z","dependencies_parsed_at":"2022-08-25T21:12:03.744Z","dependency_job_id":null,"html_url":"https://github.com/zavalit/eventsourcing_rxjs_demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zavalit%2Feventsourcing_rxjs_demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zavalit%2Feventsourcing_rxjs_demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zavalit%2Feventsourcing_rxjs_demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zavalit%2Feventsourcing_rxjs_demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zavalit","download_url":"https://codeload.github.com/zavalit/eventsourcing_rxjs_demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254374525,"owners_count":22060615,"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":["eventsourcing","redis","rxjs"],"created_at":"2025-05-15T16:18:53.930Z","updated_at":"2025-05-15T16:18:54.168Z","avatar_url":"https://github.com/zavalit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Eventsourcing Demo App\n\nThe intention and concepts behind this app are descipbed in [Lightweight Eventsourcing done by RxJS on Redis Streams](https://medium.com/@zavalit/lightweight-eventsourcing-done-by-rxjs-on-redis-streams-28ce706991b2)\n\n## Setup\n\nFor the first bootsrap all persistance layers (redis, mongodb) that demo app needs to run, as well as `redis commander` for debugging:\n```sh\ndocker-compose up -d\n```\n\n\n## Run\n\nstart an app \n```sh\nnpm install\nnpm run start\n````\n\n\nand send a few requests to see the results:\n```sh\ncurl -X POST \\\n  http://localhost:8089/projects \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n\t\"project_uuid\": \"1234-1u2u-uuid\",\n\t\"project_name\": \"Project 1\"\n}'\n\n\n\ncurl -X PUT \\\n  http://localhost:8089/projects/1234-1u2u-uuid \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n\t\"project_name\": \"Project 1 (updated)\"\n}'\n\n\ncurl -X GET \\\n  http://localhost:8089/projects\n\n````\n\n\n\n\n## Check persisting\n\n\nYou can use an `redis-commander` to take a look what and how was stored in redis. For that just open `http://localhost:8091/` in your Browser\n\nIn order to check what was stored in mongodb, you can use [MongoDB Compass](https://www.mongodb.com/download-center/compass). For connection use following credentials: `mongodb://projector:projector@localhost:27027/`\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzavalit%2Feventsourcing_rxjs_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzavalit%2Feventsourcing_rxjs_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzavalit%2Feventsourcing_rxjs_demo/lists"}