ccollums / travel-tracker

One week solo project in Vanilla JS to create a user-facing travel agency app. A user can login to view past, present, or pending trips or create new requests for trips.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Travel Tracker - Voyager

Mod2 2108 Final Solo Project

Table of Contents

Abstract

Travel Tracker is an application that allows users to track their travels (past, present, and future). It also gives the user the ability to request a new trip for a travel agent to either approve or deny. A user will arrive on a login page, upon logging in they will be taken to their travel dashboard. This dashboard will show them how much money they have spent in the past year, their past approved trips, upcoming approved trips, and pending trips (trips that have not yet been approved by an agent). If the user is on a trip during the time of login, the current trip will be shown on the dashboard as well.

Let the adventures begin!

Deployed Site

Technologies

  • HTML
  • CSS
  • SCSS/SASS
  • JavaScript
  • Mocha/Chai
  • Webpack
  • Node.js
  • Day.js
  • fetch API (GET & POST)
  • ESLint

Artists

  • Travel by Vectplus from the Noun Project (Globe Travel Icon)

Installation

To navigate the website live, a server download is required.**

  1. Download the necessary server and API here
  2. Clone this repo down to your local machine
  3. Cd into the server directory (travel-tracker-api)
  4. In the command line, run npm install
  5. In the command line, run npm start

Then clone down this repository.

  1. In your command line, cd into your local directory and clone down this repository -
    git clone https://github.com/ccollums/travel-tracker
  2. Cd into the repo
  3. Install the necessary package dependencies -
    npm install
  4. Run the command npm start
  5. With both the server running and this package running, then visit http://localhost:8080/ in your browser. **Upon arriving to application
  6. In order to login to the application pick a user id between 1 and 50. (there are 50 users in the API)
  7. The username is traveler(theUserId) and the password is travel
  8. For example: traveler34 and travel

Illustrations

Login Page

loginPage

User Trips on Page

mainDashboard

Make a trip Request/It will move to pending trips

tripRequest

Wins

  • Having an appealing UI/UX
  • Using Day.js to find future/current/past trips to display to user.
  • Implementing SCSS

Challenges

  • Learning Day.js
  • Error handling for POST requests

Additions

Future Iterations

  • Add the ability for an administrator (agent) to log in.
  • The agent should have the ability to approve and deny trip reuqests.
  • Have a count down to the users next trip.

Project Spec

Project specs can be found here

Author

Carly Collums GH
Carly Collums

About

One week solo project in Vanilla JS to create a user-facing travel agency app. A user can login to view past, present, or pending trips or create new requests for trips.


Languages

Language:JavaScript 81.1%Language:SCSS 18.9%