Code Monkey home page Code Monkey logo

Comments (2)

ptr-r-thompson avatar ptr-r-thompson commented on July 29, 2024

Be sure you have started node_server.py on the node (127.0.0.1:8000). It is critical in your command shell that the command:

set FLASK_APP=node_server.py
is issued and then the:
flask run --port 8000
command. I am using windows, so "set" is used instead of the "export" for Linux (or perhaps others). This needs to be done in a separate command shell (cmd from the run command line in windows.

At this point you should be able to navigate to http://127.0.0.1:8000/mine in your browser and see the contents (likely to be "There are no transactions to mine." unless you are using the app to request mining.

BTW, if you follow the tutorial and spin up new nodes (on 127.0.0.1:8001 for example) you MUST repeat the "set" command in the new command shell before issuing the "flask run" command.

Each run (any node_server runs and the app run) MUST be done in a separate cmd window. When setting up and experimenting with this you will have a minimum of 2 cmd windows open (one for app, and one for node_server). You can then navigate to the app (http://127.0.0.1:5000) and the node server (http://127.0.0.1:8000/mine) in your browser to see the screenshots shown in the tutorial.

from python_blockchain_app.

satwikkansal avatar satwikkansal commented on July 29, 2024

Exactly what @ptr-r-thompson said (thanks).

Closing this issue, feel free to open if the problem persists.

from python_blockchain_app.

Related Issues (20)

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.