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

https://github.com/golemfactory/3-layer-dapp-example

Simple dapp implementation
https://github.com/golemfactory/3-layer-dapp-example

Last synced: 7 months ago
JSON representation

Simple dapp implementation

Awesome Lists containing this project

README

          

## 3 layer app

### Quick start on Golem network

#### Prerequisites

- Installed `dapp-runner` (please follow https://github.com/golemfactory/dapp-runner)
- Yagna daemon running as requestor (please follow https://handbook.golem.network/requestor-tutorials/flash-tutorial-of-requestor-development)
- YAGNA_APPKEY environment variable set to your yagna app-key
- YAGNA_API_URL and GSB_URL environment variables set accordingly to your yagna provider
- Edited `config.yaml` accordingly to your needs

#### Run application

After meeting all prerequisites, execute following command:

```
dapp-runner start --config config.yaml app.yaml
```

After a while you should get yellow log in terminal containing following message:

```
{"db": {"0": "running"}, "frontend": {"0": "running"}, "backend": {"0": "running"}}
Dapp started.
```

In your browser, navigate to frontend local_proxy_address which usually is `localhost:8080`.
Address can be found in following terminal log:

```
{"frontend": {"local_proxy_address": "http://localhost:8080"}}
```

You should be able to see following page:
![page](./capture.png)

### Quick start with docker compose

If you want to run it with docker-compose, please checkout to e7f76a48149053e71d42f16b95b2dc6ec6534817 commit.