Code Monkey home page Code Monkey logo

travel-tracker's Introduction

Screen Shot 2021-09-21 at 6 56 56 PM Screen Shot 2021-09-21 at 6 56 25 PM

travel-tracker's People

Contributors

dependabot[bot] avatar hannahhch avatar justincanthony avatar kalikoze avatar khalidwilliams avatar mtcawthray avatar robbiejaeger avatar

Watchers

 avatar

travel-tracker's Issues

Iteration #2 Traveler Interaction

  1. Traveler Interaction
    As a traveler:
  • I should be able to make a trip request:
  • I will select a date, duration, number of travelers and choose from a list of destinations
  • After making these selections, I should see an estimated cost (with a 10% travel agent fee) for the trip.
  • Once I submit the trip request, it will show on my dashboard as “pending” so that the travel agency can approve or deny it.
    (Refer to the “Add new trip” image
    Screen Shot 2021-08-03 at 3 17 41 PM
    )

Note!
If you haven’t already, focus on accessibility at this point. Before moving to iteration 3, please create a branch and push it up to GH so Lighthouse can be ran to check your dashboard for the accessibility audit. Since Lighthouse refreshes the page, we need this code on a separate branch to test the accessibility of your dashboard instead of your log in page.

Error handling for date selections

Currently, a user can make several date errors that need correcting:

  • booking a trip in the past
  • booking a trip whose return date is earlier than their depart date
  • booking a trip when another trip is happening

Determine Class Structure

We will be pulling data from an API. We need to determine how to handle this data and what sort of classes and methods we will need to do this.

  • Traveler
  • Agency
  • Trip

Set up API calls

We will need to have our fetch calls set up and working in our API folder in order to access our data.
at a minimum, we need to access:

These will be stored in our apiCalls.js file

initial SCSS design

This just needs to get us into the general ballpark of how our app will look. Mostly, we want to see how the data will display. More detail and design elements can come later but for now we need:

  • a header that contains a button to book a trip
  • a footer that holds a welcome greeting, and a display of the total amount spent on travel this year.
  • a body that holds cards
  • a card that contains the following info:
    • location name
    • status (confirmed or pending)
    • date departure
    • photo of destination
    • cost
    • number of travelers

Iteration #1 dashboard

1. Dashboard

As a traveler:

I should see a dashboard page that shows me:

  • All of my trips (past, present, upcoming and pending)
  • Total amount I have spent on trips this year. This should be calculated from the trips data and include a travel agent’s 10% fee

Flesh out basic HTML structure

  • Create a header
  • create a body that holds cards
  • create a basic card layout
  • start to design for mobile before doing a media query for laptop

Iteration #3 login

  1. Login
    When first arriving at the site, a user should be able to log in with a username and password.

As a traveler:

  • I should be able to login:
  • I will see a login page when I first visit the site:
  • I can log in with the following credentials:
    username: traveler50 (where 50 is the ID of the user)
    password: travel
  • Upon successfully loggin in, I should see my dashboard.
    Refer to the “Get single traveler” photo
    Screen Shot 2021-08-03 at 3 20 47 PM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.