An open API service indexing awesome lists of open source software.

https://github.com/formancehq/example-app-credits


https://github.com/formancehq/example-app-credits

example

Last synced: about 1 month ago
JSON representation

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).

Capture d’écran 2021-08-23 à 01 24 56

## 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.