/
Things to remember

Things to remember

  1. Make sure 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. To run a flask app use either

    • 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()



Related content