https://github.com/formancehq/example-app-credits
https://github.com/formancehq/example-app-credits
example
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/formancehq/example-app-credits
- Owner: formancehq
- License: mit
- Created: 2021-08-22T23:20:26.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-05T19:33:39.000Z (about 3 years ago)
- Last Synced: 2023-03-03T20:38:35.097Z (almost 3 years ago)
- Topics: example
- Language: JavaScript
- Homepage:
- Size: 676 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# App Credits Example
This example shows you how to build a simple credit-based store using the numary [ledger](https://github.com/numary/ledger).

## Installation
1. You will need an instance of Numary [ledger](https://github.com/numary/ledger) running locally
2. Clone the repository, then build & start the app:
```SHELL
yarn build
yarn serve
```
4. Head to [http://localhost:3000](http://localhost:3000)
5. Find your user id on the app (Welcome, $userId) then issue yourself some credits:
```SHELL
curl -X POST -H "x-user-id: admin" http://localhost:3000/api/admin/users/users:56102611/funding
```
Replacing `56102611`by your user id.