Patches to tutorial

The current tutorial shows no server, so a user cannot complete the steps posting JSON by following the instructions.  Also (per issue #603), users get the mistaken impression they need jQuery.  This patch adds sample code for a python server and additional explanations as to what the application expects from a server.
For sharing the server code, there is a pull request submitted for the
github of the tutorial code,
https://github.com/petehunt/react-tutorial/pull/20.  I could expictly
mention the in this tutorial.md to no one has to cut and paste the server.

I plan to also patch the github of the tutorial code to have the various
intermediate steps in a separate directory.  I hate getting more than one
pending pull request per project, so I'll wait until the first pull request
to that project clears.

For the nit about sentences, I suppose it could matter to someone reading
the source markdown file.  Because the markdown is generally viewed as
HTML, they all fall down to single spaces anyway.   I'll patch it to be
neighborly, but it is a truly small nit. :)




On Mon, Jul 7, 2014 at 11:41 AM, Paul O’Shannessy <notifications@github.com>
wrote:

> In docs/docs/tutorial.md:
>
> > +        with open(COMMENTS_FILE, "w") as f:
> > +            f.write(data_as_json)
> > +        # send copy of data back as response
> > +        self.send_response(200)
> > +        self.send_header('Content-type', 'application/json')
> > +        self.end_headers()
> > +        self.wfile.write(data_as_json)
> > +
> > +
> > +Handler = ServerHandler
> > +httpd = SocketServer.TCPServer(("", PORT), Handler)
> > +httpd.serve_forever()
> > +
> > +```
> > +
> > +You can write the server in your favorite language as long as it does what our application needs:  handling the GET and POST of the JSON file.   There are many applications written in React that never hit any external server.   As an example, here's a sample node.js server that would also serve our application:
>
> Nit, but single spaces after sentences and other punctuation (you have a
> mix of 2 and 3).
>
> Still thinking about the best way to actually share the server code.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/facebook/react/pull/1787/files#r14614227>.
>