Code Monkey home page Code Monkey logo

capstone-django-blockchain's Introduction

Bear Bucks on the Blockchain

Getting Started: Run all three services in separate terminal windows

1. Running Bitcoin core server with RPC and testnet

  • bitcoind --txindex=1 --server=1 --testnet --reindex testnet uses port 18332

2. Running Django

  • python3 manage.py migrate --run-syncdb may have to run this first
  • python3 manage.py runserver

3. Running Celery Worker

  • celery worker -A celery_tasks --loglevel=INFO or DEBUG

How to Start Using Bear Bucks on the Blockchain

  • Create a user and sign into: http://127.0.0.1:8000/admin/
  • Create a Currency (such as BBUX)
  • Set api_url field in the format of http://username:password@localhost:18332 (from bitcoin.conf)
  • Create a Wallet and run the refil_addresses_queue task to assign it an address
  • Add testnet coins to your wallet address for free with: https://testnet.manu.backend.hamburg/faucet

Here are some of the different tasks you can call

  • celery call cc.tasks.refill_addresses_queue
  • celery call cc.tasks.query_transaction --args='[ticker,txid]'
  • celery call cc.tasks.query_transaction -a=[BTC,c810d50a0dc84bf7f62b398896578ddc881ad2a71fa00d2dc59e485ff159d1f1]
  • curl -d "param1=value1&param2=value2" -X POST http://localhost:8080/getbalance

Versions

  • Ubuntu (16.04)
  • Python (3.5.2)
  • Pip (8.1.1)
  • Django (2.0.0)
  • Celery (4.1.0)

capstone-django-blockchain's People

Contributors

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