Skip to content

waynew/endpoint-fun

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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

About

simple example of using the same HTML with different back-end technology

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published