{"id":34637020,"url":"https://github.com/formancehq/example-app-credits","last_synced_at":"2025-12-24T17:06:16.221Z","repository":{"id":40346905,"uuid":"398920867","full_name":"formancehq/example-app-credits","owner":"formancehq","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-05T19:33:39.000Z","size":692,"stargazers_count":1,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-03-03T20:38:35.097Z","etag":null,"topics":["example"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/formancehq.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":"2021-08-22T23:20:26.000Z","updated_at":"2022-04-30T16:56:23.000Z","dependencies_parsed_at":"2022-08-09T17:50:20.207Z","dependency_job_id":null,"html_url":"https://github.com/formancehq/example-app-credits","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/formancehq/example-app-credits","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formancehq%2Fexample-app-credits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formancehq%2Fexample-app-credits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formancehq%2Fexample-app-credits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formancehq%2Fexample-app-credits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/formancehq","download_url":"https://codeload.github.com/formancehq/example-app-credits/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formancehq%2Fexample-app-credits/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28005408,"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","status":"online","status_checked_at":"2025-12-24T02:00:07.193Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["example"],"created_at":"2025-12-24T17:03:40.531Z","updated_at":"2025-12-24T17:06:16.214Z","avatar_url":"https://github.com/formancehq.png","language":"JavaScript","readme":"# App Credits Example\n\nThis example shows you how to build a simple credit-based store using the numary [ledger](https://github.com/numary/ledger).\n\n\u003cimg width=\"1015\" alt=\"Capture d’écran 2021-08-23 à 01 24 56\" src=\"https://user-images.githubusercontent.com/1770991/130373310-e0a07cfb-5e9b-4176-81ae-f9229d68cf41.png\"\u003e\n\n## Installation\n\n1. You will need an instance of Numary [ledger](https://github.com/numary/ledger) running locally\n2. Clone the repository, then build \u0026 start the app:\n\n```SHELL\nyarn build\nyarn serve\n```\n\n4. Head to [http://localhost:3000](http://localhost:3000)\n5. Find your user id on the app (Welcome, $userId) then issue yourself some credits:\n\n```SHELL\ncurl -X POST -H \"x-user-id: admin\" http://localhost:3000/api/admin/users/users:56102611/funding\n```\n\nReplacing `56102611`by your user id.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fformancehq%2Fexample-app-credits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fformancehq%2Fexample-app-credits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fformancehq%2Fexample-app-credits/lists"}