GithubHelp home page GithubHelp logo

levishi / forkmon Goto Github PK

View Code? Open in Web Editor NEW

This project forked from achow101/forkmon

0.0 2.0 0.0 68 KB

A Django project to monitor the status of potential forks in Bitcoin.

License: MIT License

Python 82.62% HTML 17.38%

forkmon's Introduction

Bitcoin Fork Monitor Website

This repo contains the source code for the https://www.btcforkmonitor.info

Building and testing locally

Install Python 3. Install all of the dependencies in the requirements.txt file.

For testing and debugging purposes, it may be easier to replace the lines in settings about the DATABASES with the following:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
    }
}

Running

The first time you run this software, you will need to do some database preparation and setup. You will need to run the following commands first:

python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser

Then you can run the website with

python manage.py runserver

The website will be available at http://127.0.0.1:8000. The administration panel is available at http://127.0.0.1:8000/admin

The first time you run this, you will need to login to the admin panel and add some nodes, one block for each node, and the initial fork state.

Developing

Run the website with

python manage.py runserver

Any changes made to any of the file in this project will be automatically updated and reflected in the website by refreshing the web page.

Updating information from nodes

To update information from the nodes, you will need to specify RPC_USER and RPC_PASSWORD environment variables. These should match the rpcuser and rpcpassword that you have specified for your nodes. THe rpcuser and rpcpassword must be the same for all nodes. To update the database, run the following command:

python manage.py node_updates

modifying the updater

The updater command's logic is defined in monitor/node_updates.py.

License

This project is available under the MIT license. See the LICENSE file for more information.

forkmon's People

Contributors

achow101 avatar datasweeper avatar int3rlop3r avatar newbold avatar tarunbatra avatar unsystemizer avatar yuchi avatar

Watchers

 avatar  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.