Skip to content

emre/steemrocks

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
sql
 
 
 
 
 
 
 
 
 
 

steemrocks

Activity feed for steem accounts

Installation and Running
$ virtualenv -p python3 steemrocks-env
$ source steemrocks-env/bin/activate
$ git clone https://github.com/emre/steemrocks.git
$ cp steemrocks/local_settings.py.ex local_settings.py
$ vim steemrocks/local_settings.py # edit accordingly
$ pip install -r requirements.txt
Database import

Database creation queries located under the sql directory. Just import it to your mySQL database.

mysql -u username -p database_name < sql/base.sql

Installation is done. steemrocks has two seperate processes.

Transaction Listener Process
cd [steemrocks_directory]
$ FLASK_APP=app.py flask listen_transactions

This process listens transactions and put them into the database. By default It will start listening from the latest block. If you want to specify a starting block, you should edit ~/.steemrocks/checkpoint file (create it, if it does not exists) and put the block number here.

You should see something like that:

Server Process

In development environment:

cd [steemrocks_directory]
FLASK_APP=app.py flask run

For production, you can use gunicorn:

/gunicorn steemrocks.app:app --bind 0.0.0.0:[PORT_NUMBER]

About

Activity feed for steem accounts

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •