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
- Host: GitHub
- URL: https://github.com/golemfactory/3-layer-dapp-example
- Owner: golemfactory
- Created: 2022-09-06T11:58:36.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-23T06:39:43.000Z (over 3 years ago)
- Last Synced: 2025-04-06T00:02:19.908Z (9 months ago)
- Language: JavaScript
- Size: 517 KB
- Stars: 2
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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:

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