simple example of using the same HTML with different back-end technology
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
java/com/example
python
.gitignore
LICENSE
README.md
index.html

README.md

Endpoint Fun

This is a simple example of how an agnostic front-end that speaks JSON can decouple you from the back-end implementation details. For an example of how this works, pick a language and run the provided command. Then simply navigate to http://localhost:8765 and you should see the page pop up. Go ahead and play with the form and click submit a few times. Then kill the server on the command line with Ctrl+C and start a different one. Don't reload the page - just play around with it some more. The example page should be fully functional as long as it has a server to connect to.

Python 2 and 3

In the root directory, simply run:

$ python python

Java

In the root directory:

$ javac -d java java/com/example/EndpointFun.java && java -cp java com.example.EndpointFun