An application simulating the client side of a travel agency site.
This project implements the fetch API to perform network requests like GET and POST to a local server API. The user experience simulates a traveler visiting a travel agency portal navigating the UI through login credentials, trip requests, past trip views, and past trip spending views.
- Local Travel Tracker API
- Webpack
- HTML
- CSS
- JavaScript
- Mocha & Chai
- Boxicons
Additional improvements/iterations could include:
- Traveler Dashboard
- A countdown until the next upcoming trip
- The ability to perform DELETE requests through the UI in order to cancel a trip
- Travel Agent Dashboard
- A whole separate dashboard for agents
- Separate login credentials
- Ability to add suggested activities for destinations
- Ability to add new destinations
- Ability to approve/deny pending trip requests
- User View: Total Revenue made from 10% agent fee
Project Build
- Fork and clone this repository
- Navigate into project root directory
- Run
npm install
to install project dependencies - Run
npm start
to start the server - Navigate to the address provided (localhost:8080)
Local API Server(Run in separate terminal tab)
- Clone this repository
- Navigate into repository directory
- Run
npm install
- Run
npm start
Application uses Mocha Testing Framework and Chai Assertion Library
- run
npm test
to run tests located in tests directory