The primary goal of Travel Tracker is to have the user be able to track all their trips as well be able to see how much they spend depending on year and able to add a new trip. (Project Specs).
The motivation behind this projects creation was to build an application to help the user track all trips they have been on and add a new trip while we focused on writing DRY JS, SASS/webpack, accessing data with apis and solidifying good habits in git workflow.
Upon page load, a login will appear where a Traveler will need to input their username and password. An error will appear if the user enters a wrong username or password.
Once the user clicks on the login button, the dashboard page will appear. In this section a user is able to see their past, present, upcoming, and pending trips in a widget where you can scroll through.
A user is able to click on the select year drop down menu and select a year to show how much they have spent on trips within that year.
A user is able to add new trips by clicking on the add new trip button and a modal will appear with a form that has four inputs for user to add their information in. Once they add in their information and click on the submit button then that new trip will always appear in the pending section waiting for approval from the travel agent.
Once a user finishes will all that they want to do on the webpage a user can click the logout button so that no one else can access their information.
- ES6 JavaScript
- Testing with Mocha and Chai
- Linting with ESLint
- Semantic HTML
- SCSS
- Lighthouse and ARIA Accessibility
- Using network requests with API endpoints and async JavaScript
- Using Webpack to compile mulitple class and script files
- Deploying a site on GitHub Pages
- Git workflow using GitHub Issues and Project Kanban Board
Visit the site at GitHub Pages
In order to deploy this site locally, a user will have to run a local server.
- Clone (or fork and then clone) this repo with
git@github.com:thaomonster/travel-tracker.git [what you want to name the repo]
- Change into the directory and run
npm install
to install project dependencies. - Run
npm start
to start a local server - To access the site in your browser, navigate to the localhost address that your terminal gives you.
- For any of the class tests, run
npm test [name of the test you want to run]
- Enter
control + c
in your terminal to stop the server at any time.
- Fetching data for multiple travlers.
- Add Agent Interaction to the website including:
- deleting a trip
- Get Media Query to work correctly.
- Have users be able to modify their pending trips before it is approved.
- Drag and drop widgets depending on a user's preference.
If you are interested in contributing please:
- clone down this repo:
git@github.com:thaomonster/travel-tracker.git
- create a new branch:
git checkout -b your-initials/feature/feature-name
- contribute as you like
- in the terminal, push the branch upstream
- create a pull request via github
- wait for our reply
Thao Ma GH |
Thank you Elle Li and Background Photo by Chris Lawton on Unsplash.