Skip to content

Latest commit

 

History

348 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eCommerce application

This is a collaborative project by AlexanderMisyura, kelzerock and zzzhuchok as a part of the RS School Frontend course. The THE TEAM eCommerce app is an online LEGO set marketplace that uses the Commerce Tools API to mirror the conventional shopping cycle. It offers the full shopping experience, from registration and browsing to adding products to a shopping cart.

Disclaimer:

The data used in this application is not intended for commercial gain. All names and trademarks, including LEGO®, Batman™, Star Wars™, Technic™, and The Lord of the Rings™, are the property of their respective owners. They are used here solely for illustrative and educational purposes, as building and contributing to a fun project is more engaging.

Tech Stack

  • Language: Typescript
  • Framework: React
  • Bundler: Vite
  • Testing: Vitest, React Testing Library
  • UI: Material UI (MUI)
  • Styling: Tailwind
  • Routing: React Router (Data mode)
  • Code Quality: ESLint, Prettier, Stylelint
  • Git Hooks: Husky

Setting Up and Running the App

Prerequisites:

  • Node.js (v22 or higher)
  • npm (v10 or higher)
  • A Commerce Tools Merchant Center account.

Merchant Center Setup:

  • Create an API Client in your Merchant Center with the scopes listed in .env.example.
  • Setup Product Types, Products, Categories and Discounts in your Merchant Center. Categories should have a maximum one level subcategory depth.
  • Turn ON the Product Search and Product Projection Search feature in your Merchant Center.

Local Setup:

  • Make a fork of the repository.
  • Clone the forked repository to your local machine.
  • Install dependencies with npm install.
  • Create a .env file based on the .env.example file and fill in the required values.
  • Start the dev server with npm run dev.
  • Open your browser and navigate to http://localhost:5173.

Contributing

Please, read our Contributing Guideline.

Scripts

  • npm run dev: starts the development server
  • npm run build: builds the production version
  • npm run lint: checks code quality with ESLint
  • npm run lint:fix: automatically fixes linting errors with ESLint
  • npm run stylelint: checks styles' code quality with Stylelint
  • npm run format: formats code with Prettier
  • npm run format:check: verifies code formatting with Prettier
  • npm test: runs tests with Vitest
  • npm run coverage: runs tests with Vitest and generates coverage report

Releases

Packages

Contributors

Languages