O'Reilly logo

Go Web Development Cookbook by Arpit Aggarwal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works…

Once we run the program, the HTTP server will start locally listening on port 8080.  

Browsing to http://localhost:8080 will show us the ReactJS client page, as shown in the following screenshot: 

ReactJS client page

Clicking on the Add button after filling in the textbox will send a POST request to the HTTP server running on port 8080

Click on the Add button after filling in the textbox

Next, executing a GET request from the command line as follows will give you a list of all the static employees: 

$ curl -X GET http://localhost:8080/employees ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required