Question: Create a new nodejs app using express-generator and ejs. Be sure to gitignore the node_modules folder! Create a weather API endpoint, with the route /api/v1/weather.
Create a new nodejs app using express-generator and ejs. Be sure to gitignore the node_modules folder! Create a weather API endpoint, with the route "/api/v1/weather". This endpoint should respond to GET requests. Return the following JSON from the weather endpoint:
{ Temp:90.5, Unit: fahrenheit, Cloudy:false, PrecipitationChance:0 }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
