$ pipenv install flask flask-cors
- Start flask app at port 5000
$ FLASK_ENV=development pipenv run flask run
- Open another terminal and start serving static file at port 8080
$ cd templates && python3 -m http.server 8080
Play around and see how Ajax retrieves responses from the server.