Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

Version 1 Current »

  1. Make sure they have installed flask, flask_cors, and requests

  2. Make sure they know how to route URL using app.route(...), stick to method bindings only don't bother with class binding, we need to keep things simple

  3. Make they know how to run the flask app either using

    • set FLASK_APP=serverEvents.py

      flask run --host=0.0.0.0

    • OR within the main python file use the following

      • app.run(port=8080, threaded=True, host=('0.0.0.0')) that can then be executed using python <main file>

  4. Make sure they know how to transmit JSON object between python apps

  5. Make sure they know how to send JSON data from a browser (a React app) to a python app and extract that data in the app - I used request.ge_json() from the flask library

  6. Make sure they know how to send JSON data from a python app to a browser (a React app) and extract that data in the React app - I used json.dumps()


  • No labels