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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ea15103de35cd689a0d09353fabc2adaf82c6a3b491eee6f837b1c786528ba2 |
|
MD5 | 50535c3190ad5466439c98d02a6778d2 |
|
BLAKE2b-256 | c2a6e2834e53f5fa2a9a3c87456bdc45efb3675f2baac2ba4b2e1394042c4ace |
Hashes for forge_event_chain-0.18.11-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0a6d577b9555ea0aac9e80c87964023ee46cb6139f75c5886f450043628a525 |
|
MD5 | 7a7c10cd67b8c3376ce792f9175aa103 |
|
BLAKE2b-256 | 224b4742a3383d110f4a2f93bbaaebfe133e5ed7f4f3afa239bc64c45d9d2350 |