{"id":16193062,"url":"https://github.com/slashdotdash/gift-card-demo","last_synced_at":"2025-03-19T04:30:33.794Z","repository":{"id":44141361,"uuid":"188434140","full_name":"slashdotdash/gift-card-demo","owner":"slashdotdash","description":"Commanded demo application focused around a simple giftcard domain.","archived":false,"fork":false,"pushed_at":"2023-01-03T22:35:15.000Z","size":1151,"stargazers_count":20,"open_issues_count":12,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-18T21:29:14.110Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/slashdotdash.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}},"created_at":"2019-05-24T14:17:09.000Z","updated_at":"2023-07-17T10:59:58.000Z","dependencies_parsed_at":"2023-02-01T11:46:54.411Z","dependency_job_id":null,"html_url":"https://github.com/slashdotdash/gift-card-demo","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/slashdotdash%2Fgift-card-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashdotdash%2Fgift-card-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashdotdash%2Fgift-card-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashdotdash%2Fgift-card-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slashdotdash","download_url":"https://codeload.github.com/slashdotdash/gift-card-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243968469,"owners_count":20376400,"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":[],"created_at":"2024-10-10T08:13:54.960Z","updated_at":"2025-03-19T04:30:33.404Z","avatar_url":"https://github.com/slashdotdash.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Getting started with Commanded\n\nThis Commanded demo application focuses around a simple giftcard domain, designed to show how to configure and use the library.\n\nIt is heavily inspired by the [Axon Framework demo application](https://github.com/AxonIQ/giftcard-demo/).\n\n## Domain model\n\nThere are just two events in the lifecycle of a gift card:\n\n1. Issued: a new gift card gets created with some amount of money stored.\n2. Redeemed: all or part of the monetary value stored on the gift card is used to purchase something.\n\n## Running the demo locally\n\n1. Clone the git repo:\n\n    ```console\n    git clone https://github.com/slashdotdash/gift-card-demo.git\n    ```\n\n3. Get mix dependencies:\n\n    ```console\n    mix deps.get\n    ```\n\n3. Create and initialise the database:\n\n    ```console\n    mix setup\n    ```\n\n### Database\n\nIn this demo the write (event store) and read (projections) models share the same database (named `giftcard_\u003cenv\u003e`). In a production environment you might choose to configure and use two separate databases, one for each model.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslashdotdash%2Fgift-card-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslashdotdash%2Fgift-card-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslashdotdash%2Fgift-card-demo/lists"}