Skip to content

CryptoProcessing/JABE

Repository files navigation

Create DB and user

mysql -u root -p
CREATE DATABASE jabe;

For tests

CREATE DATABASE jabe_test;
GRANT ALL ON jabe.* TO jabe@localhost IDENTIFIED BY 'jabe';
GRANT ALL ON jabe_test.* TO jabe@localhost IDENTIFIED BY 'jabe';

Virtual environment

virtualenv -p python3 venv
source venv/bin/activate
pip3 install -r requirements.txt

Миграции

только один раз

python manage.py db init

при каждом изменении

python manage.py db migrate
python manage.py db upgrade

start gunicorn

sudo systemctl daemon-reload
sudo systemctl start gunicorn.service
sudo systemctl restart gunicorn.service

sudo systemctl start gunicorn.socket
sudo systemctl restart gunicorn.socket

#run celery worker

celery worker -A celery_worker.celery --loglevel=info

or

start celery daemon

sudo systemctl daemon-reload
sudo systemctl start celery.service
sudo systemctl restart celery.service

start nodelistener daemon

sudo systemctl daemon-reload
sudo systemctl start nodelistener.service
sudo systemctl restart nodelistener.service

nginx

ln -s /home/melaman/JABE/nginx_jabe.conf /etc/nginx/sites-available/nginx_jabe.conf
python manage.py findprevious -b 250000 -s 25000

start parsing manually

python manage.py startparsing

About

Just another bitcoin explorer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published