A small example package
Project description
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.
- Developer Setup: if you want to work directly with the source code
- Quick Setup: if you just want to get a quick sense of it.
Developer Setup
-
clone this repo to your local
-
install dependencies for forge-python-sdk:
`pip install -r requirements.txt`
-
install dependencies for forge-event-chain
`pip install -r examples/event_chain/requirements.txt`
Quick Setup
-
Go to your python environment
-
pip install forge-event-chain
Run
Before running event_chain, make sure your local forge is running properly.
-
Add event_chain config in your forge config.
[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
-
restart forge to activate the updated config.
-
simulate original data to start with:
FORGE_CONFIG=/home/User/forge_release.toml python -m event_chain.simulation.simulat
-
start event_chain server:
FORGE_CONFIG=/home/User/forge_release.toml python -m event_chain.server.init
-
start event_chain application:
FORGE_CONFIG=/home/User/forge_release.toml python3 -m event_chain.ec normal
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for forge-event-chain-0.18.22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07b1b40e0144bb774b4f27af4a7a051b2bc7a38752f2f0f3f461c7eaff69b616 |
|
MD5 | 2dcf1c8d6abf32c2556d04ac37cb16be |
|
BLAKE2b-256 | bcea239da8bda89147e5ae45a8752d5459b1970dd4e0c08be793cd803f1a43f3 |
Hashes for forge_event_chain-0.18.22-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dc215b96271449819fe2be8bed809d7a38236b33dee67e8923fc5cd1591dd9d |
|
MD5 | b09ba0f6fa26d1c3dc914b1bda0091b1 |
|
BLAKE2b-256 | 1d796f1976c36a2a25bfef30a2c4052655749d513a22d81d87cc4fa646fdb07f |