travel-tracker's Introduction
travel-tracker's People
travel-tracker's Issues
Iteration #2 Traveler Interaction
- 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
)
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:
- Get All Travelers from http://localhost:3001/api/v1/travelers
- Get All Trips from http://localhost:3001/api/v1/trips
- Get All Destinations from http://localhost:3001/api/v1/destinations
- Get Single Traveler from http://localhost:3001/api/v1/travelers/ where will be a number of a traveler’s id
- Add New Trip POST to http://localhost:3001/api/v1/trips
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
- Login
When first arriving at the site, a user should be able to log in with a username and password.
As a traveler:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.