Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. Make sure they you 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 To run a flask app use 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()

...