Skip to content

The Mercury Store is a JavaScript-powered front-end repo built with 4 foundational components of an industry-standard e-commerce web page. The Mercury Store repo ensures that users are able to dynamically render a web page with the following 4 components: Product Overview, Related Products, Questions & Answers, and Ratings & Reviews.

Notifications You must be signed in to change notification settings

RFP2305-Team-Mercury/frontendcapstone

Repository files navigation

The Mercury Store

Utilizing The Mercury Store

The Mercury Store is a JavaScript-powered front-end repo built with 4 foundational components of an industry-standard e-commerce web page.

The Mercury Store repo ensures that users are able to dynamically render a web page with the following 4 components: Product Overview, Related Products, Questions & Answers, and Ratings & Reviews.

Getting Started

Checking Prerequisites

Ensure you have the following prerequisites to run The Mercury Store:

Installing The Mercury Project

Once you have completed the prerequisite requirements, follow these steps to run the repo:

  1. Fork and clone the repo.

  2. Run npm install to install dependencies within the frontendcapstone directory in your terminal.

  3. Create a config.js file with the following format and export it to the apiConfig.js file:

    const secretConfig = {
     BASE_URL: 'Insert API base URL here',
     API_KEY: 'Insert Generated GitHub Personal Access Token here'
    };
    
  4. Create an apiConfig.js file in the /src/apis folder.

  5. Run the following scripts in your terminal:

    1. npm start
    2. npm run dev
    3. npm run build
  6. Open your browser and type http://localhost:3000 into the URL bar, or click here to render the Mercury Project.

At this point, your cloned repo of The Mercury Project should be functioning and rendering on your local host network.

Exploring the Components

At a glance, the 4 components ensure users are able to see a Product Overview, Related Products, Questions & Answers, and Ratings & Reviews.

Below are the detailed specifications and functionality of each component.

Product Overview

The Product Overview module is crafted to catch the user's attention and provide a smooth scrolling experience for reviewing the product's images. It maintains high-resolution images and offers expansion and magnification features, allowing users to confidently select their preferred size, color, and style.

The module consists of the following features:

  • Image gallery
  • Product information
  • Style selector
  • Add to cart

Product Overview Demo:

Product Overview Demo

Related Products

The Related Products module displays two sets of related products. The first set is a list of internally determined products that are related to the currently viewed product. The second set is a custom list created by the user, consisting of products grouped with the current product into an 'outfit'.

The module consists of the following features:

  • Related products with main image and star ratings
  • Product comparison modal
  • Personal outfit closet

Related Products Demo:

Related Products Demo

Questions & Answers

The Questions & Answers module allows users to ask and answer questions about the selected product. This module's functionality can be divided into several pieces.

The module consists of the following features:

  • View questions
  • Search for a question
  • Ask a question
  • Answer a question

Questions & Answers Demo:

Questions & Answers Demo

Ratings & Reviews

The Ratings & Reviews module allows users to view and submit reviews for the selected product. This module's functionality can be divided into several pieces.

The module consists of the following features:

  • Write a new review
  • Reviews list
  • Sorting
  • Rating breakdown
  • Product breakdown

Ratings & Reviews Demo:

Ratings & Reviews Demo

Running Tests

Now that you've read about each component, you can start testing with the following terminal command:

  1. npm test

This will open a new terminal window, and you will see a test coverage of the total component and unit tests.

Building The Mercury Store

The following libraries and frameworks are installed to build the fully functioning and stylistic web page:

Language/Library

Javascript React Redux TailwindCSS

Environment

Axios NodeJS Express

Bundler Pack

Babel Webpack

Test Environment

Jest TestingLibrary

Introducing Team Mercury

Software Developers

About

The Mercury Store is a JavaScript-powered front-end repo built with 4 foundational components of an industry-standard e-commerce web page. The Mercury Store repo ensures that users are able to dynamically render a web page with the following 4 components: Product Overview, Related Products, Questions & Answers, and Ratings & Reviews.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages