Simple python HTTP Server to work with the react.js tutorial.
The tutorial currently recommends using python -m SimpleHTTPServer
. However, that is a read-only server, and so if
you're following the tutorial literally, when you get to the part that talks about posting the data to the server, it
won't actually work and you may be frustrated. This extension of SimpleHTTPServer makes the tutorial work as written,
by accepting POST's of JSON data and appending them to the JSON list found in the requested url and then returning the
updated list.
- Copy server.py into your react.js tutorial working directory.
- Run
python server.py