RivaD2 / city_explorer_api.

This site was built with a stand-alone back end which interacts with a static front end. Data was requested from APIs, modified and sent to the client to be displayed in the browser. Data was persistedin a SQL database.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project name: city_explorer_api.

Heroku Link: Heroku


Author: Riva Version: 1.0.0 (increment the patch/fix version number if you make more commits past your first submission)

Overview

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.

Getting Started

// Creating a server

  1. touch server.js 1.5 touch .eslintrc.json
  2. GET THE SERVER RUNNING
  3. install the packages (libraries) npm install <PACKAGENAME> <PACKAGENAME> <ETC>
  4. in the js file - load the packages
  5. configure the app
  6. tell the server to listen on the port
  7. start writing routes to handle requests from the client

Architecture

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


Number and name of feature: Feature 3: Implemented error handling function

Estimate of time needed to complete: 20min

Start time: 5:00pm

Finish time: 5:30pm

Actual time needed to complete: 30min


Number and name of feature: Feature 4: Created a 3rd route of trails with the method of get

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


About

This site was built with a stand-alone back end which interacts with a static front end. Data was requested from APIs, modified and sent to the client to be displayed in the browser. Data was persistedin a SQL database.

License:MIT License


Languages

Language:JavaScript 100.0%