datastackacademy / deb-archive

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

Form validation #12

Closed sarakane closed 3 years ago

sarakane commented 3 years ago

User Story

As a user, I want to be warned when my date selections are not within the current min and max dates so that I know if my selected dates are valid The current min and max dates are already returned as part of the preload API call and are stored in local storage and the preload state variable as ‘preload.minDate’ and ‘preload.maxDate’

Changes Made

AC:

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