Giter Site home page Giter Site logo

imylomylo / kmd_ntx_stats_docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smk762/kmd_ntx_stats_docker

0.0 0.0 0.0 39.18 MB

Docker container for Komodo Notary stats API using Django / PGSQL

Shell 0.08% JavaScript 1.83% Python 35.68% CSS 22.79% HTML 39.61% Dockerfile 0.02%

kmd_ntx_stats_docker's Introduction

Dependancies:

Clone repo

git clone https://github.com/smk762/kmd_ntx_stats_docker

cd kmd_ntx_stats_docker

Install Python Packages: pip3 install -r requirements.txt

sudo docker-compose build (needs to be run to apply code changes)

sudo docker-compose up (run to launch containers)

Setup .env files (scripts pending...)

  • pgsql credentials

  • django secret key

  • allowed hosts

Create Database Tables

Make migrations: "docker-compose run web python3 manage.py makemigrations"

Apply migrations: "docker-compose run web python3 manage.py migrate"

Collect static files: "docker-compose run web python3 manage.py collectstatic"

See https://docs.djangoproject.com/en/3.0/ref/django-admin/ for more django admin commands.

Applying code changes

cd ~/kmd_ntx_stats_docker

docker-compose build

sudo chown $USER:$USER /home/$USER/kmd_ntx_stats_docker/postgres-data -R

docker-compose build

sudo cp -R static /var/www/stats.kmd.io/html

Adding new coins

add coin parmas to scripts/base_58.py

run scripts/populate_coins_table.py

run scripts/populate_balances_table.py

run scripts/populate_addresses_table.py

Check web pages to confirm display / no errors.

kmd_ntx_stats_docker's People

Contributors

smk762 avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.