Lab: Express REPS
Create an Express application that serves a static JSON file. We used the
fslibrary to do this yesterday. Feel free to refer to your code from yesterday for assistance.Create an Express RESTful API with the resource (URL) of
/api.Use the Express Generate command to create basic website; use EJS views to render a page (similar with ERB in Sinatra/Rails). You are to create a website that makes an
$.ajax/$.getJSONrequest to an API on the server it is on (similar to Sinatra). This API should return JSON with themessageof it is a beautiful day and anoteof Chicago summers rock. It should then render this data somewhere on the page using jQuery.