Skip to content

This web app displays a list of tracked parcels fetched from an API endpoint.

Notifications You must be signed in to change notification settings

eeels22/package-tracker

Repository files navigation

YellowCorp package tracker

Description

This web app displays a list of tracked parcels fetched from an API endpoint.

This project was created as an assignment for Software Development Academy (SDA). It was bootstrapped with Create React App and supports major mobile and desktop browsers/layouts.

The web app is hosted by Firebase at https://package-tracker-sda9.web.app/

Installation

Clone this repository:

git clone https://github.com/eeels22/package-tracker.git

In the project directory, run:

npm install

Installs the project's dependencies (read on for details) in the local node_modules folder.

npm start

Runs the app in the development mode.

Open http://localhost:3000 to view it in the browser. The page will reload if you make edits. You will also see any lint errors in the console.

npm run build

Builds the app for production to the build folder.

It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes. The app is then ready to be deployed!

Deployment

See the section about deployment in the React documentation for diferent deployment options.

Dependencies

The app uses the following packages:

React

  • react ^17.0.2
  • react-dom ^17.0.2
  • react-scripts 4.0.3

  • Navigational components

  • react-router-dom ^5.2.0

  • Global state management

  • recoil ^0.2.0

  • Internationalisation

  • i18next ^20.3.1
  • react-i18next ^11.10.0

  • Icons

  • @fortawesome/free-solid-svg-icons ^5.15.3
  • @fortawesome/react-fontawesome ^0.1.14
  • @fortawesome/fontawesome-svg-core ^1.2.35

  • Map

  • leaflet ^1.7.1
  • react-leaflet ^3.2.0

  • Using the app

    Home page

    Get started by clicking the link to view all parcels or search parcels by sender name using the search bar in the header.

    Figure 1: Home page on desktop view Home desktop view

    All parcels page

    Get an overview of all tracked parcels. The sender name, order status and matching icon are displayed for each parcel.

    Click on a parcel to see further details.

    Figure 2: All parcels page on desktop view All parcels desktop view

    Parcel details page

    Get more details about a parcel. Some values have been formatted to use more natural language (e.g. "none" instead of "null", "yes / no" instead of "true / false").

    Figure 3: Parcel details on desktop view Parcel details desktop view

    Search results page

    All pages display a search bar in the header, where you can search for parcels by sender.

    Search results include part matches, so searching for "oo" will return parcels sent by "Divanoodle" and "Zoonoodle".

    Click on a parcel result to see the details.

    Figure 4: Search results showing part matches on desktop view Search results desktop view

    Choose language

    The app's default language is English but you can switch to Swedish by click on the language name in the top right.

    Figure 5: Example of a page in Swedish Page with Swedish text

    Authors and acknowledgments

    Thanks to Eduardo Alvarez (Front End teacher at SDA), the teaching assistants, fellow classmates and Chibi Godzilla.

    Image credits

    Van illustration by DrawKit
    Icons from Font Awesome

    About

    This web app displays a list of tracked parcels fetched from an API endpoint.

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published