Metadata-Version: 2.1
Name: forge-event-chain
Version: 0.18.2
Summary: A small example package
Home-page: https://github.com/ArcBlock/forge-python-sdk
Author: Riley Shu
Author-email: riley@arcblock.io
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: Flask (==0.12.4)
Requires-Dist: Flask-AppBuilder (==1.10.0)
Requires-Dist: Flask-Babel (==0.11.1)
Requires-Dist: Flask-Caching (==1.4.0)
Requires-Dist: Flask-Compress (==1.4.0)
Requires-Dist: Flask-Login (==0.2.11)
Requires-Dist: Flask-Migrate (==2.2.1)
Requires-Dist: Flask-OpenID (==1.2.5)
Requires-Dist: flask-qrcode
Requires-Dist: Flask-Script (==2.0.6)
Requires-Dist: Flask-Session (==0.3.1)
Requires-Dist: Flask-SQLAlchemy (==2.1)
Requires-Dist: Flask-Testing (==0.7.1)
Requires-Dist: Flask-WTF (==0.14.2)
Requires-Dist: flask-googlemaps
Requires-Dist: forge-python-sdk (==0.18.1)
Requires-Dist: requests
Requires-Dist: click (==6.7)

Event Chain: An Event System Built on Forge

Introduction
---

There are two ways of running event-chain on your local. Pick one that suit you more.
1. Developer Setup: if you want to work directly with the source code
2. Quick Setup: if you just want to get a quick sense of it.

Developer Setup
---

1. clone this repo to your local

1. install dependencies for forge-python-sdk:

        `pip install -r requirements.txt`
 2. install dependencies for forge-event-chain

        `pip install -r examples/event_chain/requirements.txt`

Quick Setup
---
1. Go to your python environment

2. `pip install forge-event-chain`


Run
---

Before running event_chain, make sure your local forge is running properly.

1. Add event_chain config in your forge config.
    ```toml
    [app]
    name = "Event-Chain"
    version = "0.1.0"
    sock_tcp = "tcp://127.0.0.1:27219"
    path = "~/.forge/event_chain"
    host="127.0.0.1" # Your local IP address for wallet to connect
    port=5000
    did_address='http://localhost:4000' # The DID service event_chain will call from

    ```

1. restart forge to activate the updated config.

1. simulate original data to start with:

   `FORGE_CONFIG=/home/User/forge_release.toml python -m event_chain.simulation.simulat`
 2. start event_chain server:

    `FORGE_CONFIG=/home/User/forge_release.toml python -m event_chain.server.init`

3. start event_chain application:

   `FORGE_CONFIG=/home/User/forge_release.toml python3 -m event_chain.ec normal`


