Author: Sean Murray Version: 1.5.5
This will be a simple API to serve information for the City Explorer Front end.
Once you have cloned the repo in the command line run:
npm i
Create a local .env file and insert the following:
- openport should be a number for an open port on your machine.
PORT=<openport>
To start the server run the following in the terminal:
npm start
This API is designed to handle GET requests on /location and /weather routes to serve data to a front end.
- Express
- dotenv
- cors
- superagent
- pg
-
06-08-2020 1531 - Application now has functional GET route for location.
-
06-08-2020 1615 Application now has function Get route for weather.
-
06-09-2020 1530 Application now uses API calls to query search data, and GET route for trails.
-
06-10-2020 1640 Application now uses SQL to store location data for faster load times.
-
06-11-2020 2110 Application now has yelp and movie routes, all routes are individual modules.
Number and name of feature: Location
Estimate of time needed to complete: 30min
Start time: 1500
Finish time: 1530
Actual time needed to complete: 30min
Number and name of feature: Weather
Estimate of time needed to complete: 30min
Start time: 1545
Finish time: 1600
Actual time needed to complete: 15min
Number and name of feature: Trails
Estimate of time needed to complete: 30min
Start time: 1430
Finish time: 1500
Actual time needed to complete: 30min
Number and name of feature: Superagent + API
Estimate of time needed to complete: 30min
Start time: 1445
Finish time: 1515
Actual time needed to complete: 30min
Number and name of feature: SQL
Estimate of time needed to complete: 1:30min
Start time: 1400
Finish time: 1610
Actual time needed to complete: 2:10min
Number and name of feature: Yelp
Estimate of time needed to complete: 45min
Start time: 1500
Finish time: 1610
Actual time needed to complete: 1:10min
Number and name of feature: Movies
Estimate of time needed to complete: 30min
Start time: 1610
Finish time: 1625
Actual time needed to complete: 25min
Number and name of feature: Refactor
Estimate of time needed to complete: 1:30min
Start time: 2000
Finish time: 2110
Actual time needed to complete: 1:10min