datastackacademy / deb-archive

TuraLabs FREE Data Engineering Bootcamp
Apache License 2.0
3 stars 6 forks source link

Ch2 web app - flights per day graph #14

Closed sarakane closed 3 years ago

sarakane commented 3 years ago

User Stories

As a user, I want the no flights search to have a return to search page button instead of an anchor tag so it is consistent with the not valid search results The component for no flights uses an anchor tag to return to the search page, while the component for a not valid search uses a button. Updating the no flights page to keep the two consistent.

AC:

As a user, I want to have a graph showing the number of flights of a given airline per day over the search period so that I can see which days have the most flights

AC:

Changes Made

Type of Changes

Type
🐛 Bug Fix
✨ New Feature
🔨 Refactoring
💯 Add tests
🔗 Update dependencies
📜 Docs

Testing Steps / QA Criteria

Set up and run the Flask API

  1. In ch2-flight-search-api/creds add a service account KEY FILE
  2. Run the following command:
    export GOOGLE_APPLICATION_CREDENTIALS="[PATH TO KEY FILE]"
  3. In ch2-flight-search-api install or activate your python virtualenv and install all packages in requirements.txt
  4. Run the following command to start the application:
    python3.7 run.py

    The REST API should now be available on http://localhost:5000

Set up and run the front end

  1. In ch2-flight-search-fontend run npm install to install project dependencies.
  2. Run npm run start to start the application

The application should be available on http://localhost:3000