Coder Social home page Coder Social logo

travel-tracker's Introduction

Travel Tracker

Overview

This is the final project for MOD 2 of Turing School of Software & Design. For this project, I built a travel agency site, focusing on the following skills:

  • Test-driven development
  • Designing an effective class structure
  • Using network requests to GET and POST data to an API
  • Handling fetch errors
  • Utilizing Webpack
  • Writing DRY Javascript that utilizes the single responsibility principle
  • Separating DOM-related JS from 'business-logic'
  • Using SCSS to write clean and modular CSS
  • Creating a fully responsive layout across mobile and desktop devices
  • Using ARIA and semantic HTML to improve site accessibility

Setup Instructions

  1. Clone into the repo
  2. Run npm install
  3. Run npm start to connect to localhost:8080
  4. Follow the directions in this repo to connect to the local server
  5. Navigate to http://localhost:8080/ to view the site
  6. Log in using the username traveler<integer between 1 and 50> and password travel2020. The integer in the username specifies which user's data to fetch.

App Features

  • See total user has spent on trips this year
  • See all past, current, upcoming, and pending (awaiting agent approval) trips
  • Request a new trip:
    • Select a destination, date range, and number of travelers
    • Get a quote for the trip price (including a 10% fee for the travel agent)
    • Submit the trip for agent approval (the trip now will appear in the 'Pending Trips' list)

Demonstration:

Login Page

GIF showing log in

Booking a New Trip

GIF showing booking a trip

User Overview Page Responsive Layout

Technologies Used

  • Chai and Mocha for testing
  • Webpack
  • NPM
  • Vanilla Javascript
  • HTML
  • SCSS
  • Node servers

Future Additions

  • Agent view with ability to search for users and approve booking requests

travel-tracker's People

Contributors

kendallha avatar robbiejaeger avatar hannahhch avatar khalidwilliams avatar daomeow avatar dependabot[bot] avatar

Watchers

 avatar

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.