Heroku Link: Heroku
Author: Riva Version: 1.0.0 (increment the patch/fix version number if you make more commits past your first submission)
This project required building a stand-alone back end which will interact with a static front end. I requested data from a total of four third-party APIs, modified the data as needed, and sent the data to the client to be displayed in the browser. I created an instance on Heroku as well.
// Creating a server
- touch server.js 1.5 touch .eslintrc.json
- GET THE SERVER RUNNING
- install the packages (libraries)
npm install <PACKAGENAME> <PACKAGENAME> <ETC>
- in the js file - load the packages
- configure the
app
- tell the server to listen on the port
- start writing routes to handle requests from the client
dotenv, express, Heroku, Cors, Node.js and Github
Number and name of feature: Feature 1: Created two routes with method .get() and two constructor functions for location and weather
Estimate of time needed to complete: Over 3 hrs
Start time:2:45
Finish time: 6:00
Number and name of feature: Feature 2: Added an environment variable to our server for location and weather
Estimate of time needed to complete: 2 hrs
Start time: 2:56pm
Finish time: 4:56
Actual time needed to complete: 2hrs
Estimate of time needed to complete: 20min
Start time: 5:00pm
Finish time: 5:30pm
Actual time needed to complete: 30min
Estimate of time needed to complete: 1hr
Start time: 5:30pm
Finish time: 6:23pm
Actual time needed to complete: under an hr
Number and name of feature: Feature 5: Created a function to check the database for the location information.
Estimate of time needed to complete: 2hrs
Start time: 3:30pm
Finish time: 5:50pm
Actual time needed to complete: 2hrs20min
Number and name of feature: Feature 6: Created a fourth route with a method of get and a path of /yelp.
Estimate of time needed to complete: 2hrs
Start time: 5:52pm
Finish time: 7:00pm
Actual time needed to complete: 1hr8min