Giter Site home page Giter Site logo

blockchainpoc's Introduction

BlockChainPOC

Install Elastic Beanstalk command line tool

  • AWS Directions
  • TLDR: python pip install awsebcli --upgrade --user or Recommended: python pip3 install awsebcli --upgrade --user

python eb terminate flask-env

Deploy Flask Application to AWS

  • AWS Directions
  • Notes:
    1. After: python pip install flask==0.10.1 install requests pip3 install requests or you can just copy the requirements.txt file from this repo!

    2. Don’t use: python ~/eb-flask$ eb init -p python2.7 flask-tutorial Use: eb init and follow the prompts.

    3. The remainder of the directions assume you name your environment blockchain-env

    4. Python version is 3.6.0

    5. You can find the AWS credentials in the slack channel (look for an excel file) or you can create your own if you’re using your own Amazon account.

    6. You can open the Flask application using: eb open You should see a new tab open in your browser that looks like this:

    7. You can use the blockchain by executing GET / POSTS requests to the corresponding URL. For example given the base url returned from EB: http://blockchain-env.frpxa3yuwp.us-east-1.elasticbeanstalk.com/ you can make requests to:

      1. ‘/mine’
      2. ‘/transactions/new’
      3. ‘/chain’
      4. ‘/nodes/register’
      5. ‘/nodes/resolve'
    8. Sample EHR records are still executed on ‘/transactions/new’. JSON should be in the form:

{
    "patient": "Bart Simpson",
    "physician": "Doogie Howser",
    "date": "Feb 20, 2018",
    "notes": "Annual physical"
}
  1. Be sure to terminate the instance when you’re done: python eb terminate blockchain-env

blockchainpoc's People

Contributors

dtroupe18 avatar

Watchers

James Cloos 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.