Skip to content

solidados/async-amigos-ecommerce

 
 

Repository files navigation

E-Commerce Application


reveal.js

Computer Parts

Overview

The Computer E-Commerce Application is a user-friendly and feature-rich online platform designed to cater to computer enthusiasts, gamers, and professionals looking to purchase high-quality computer hardware. With an intuitive user interface and a vast range of products, our application aims to provide a seamless shopping experience for customers seeking the latest and most reliable computer components.

Technology Stack

The Shop-n-Comp project is an eCommerce application built using the following technology stack:

  1. Webpack: A powerful bundler used to package and optimize the application's assets.
  2. TypeScript: A statically-typed superset of JavaScript that enhances code reliability and maintainability.
  3. HTML Webpack Plugin: Simplifies HTML file creation and injection of bundled scripts into the HTML template.
  4. Sass: A popular CSS preprocessor that provides advanced features and improves CSS code organization.
  5. PostCSS: A versatile CSS tool that enhances and transforms styles using plugins.
  6. Stylelint: A linter for style sheets that helps maintain consistent and error-free CSS code.
  7. Prettier: An opinionated code formatter that ensures consistent code style across the project.
  8. ESLint: A JavaScript linter that identifies and enforces coding patterns and best practices.
  9. Jest: A testing framework for JavaScript and TypeScript applications.
  10. Husky: A Git hook manager used to trigger scripts on pre-commit and pre-push actions.
  11. lint-staged: A tool that runs linters on staged files to enforce code quality before committing.
  12. Terser: A JavaScript minifier that compresses and optimizes the final build output.
  13. Autoprefixer: Automatically adds browser-specific prefixes to CSS properties to enhance compatibility.
  14. Mini CSS Extract Plugin: Extracts CSS into separate files for better performance.
  15. Webpack Dev Server: A development server that enables live reloading and better development experience.
  16. ts-jest: A TypeScript preprocessor for Jest to enable testing TypeScript files.
  17. @typescript-eslint: Integrates ESLint with TypeScript for enhanced linting capabilities.
  18. @testing-library/dom: Simple and complete DOM testing utilities that encourage good testing practices.
  19. Boxicons: Carefully designed open source iconset with 1500+ icons. It's crafted to look enrich your website/app experience.
  20. JustValidate: Modern, simple, lightweight (~5kb gzip) form validation library written in Typescript, with no dependencies.
  21. Toastify-JS: Toastify is a lightweight, vanilla JS toast notification library.
  22. Swiper: Swiper - is the free and most modern mobile touch slider with hardware accelerated transitions and amazing native behavior.

Setting up and Running the Project Locally

Prerequisites

Before you begin, ensure that you have the following software installed on your machine:

  1. Node.js (v14.x or higher)
  2. npm (Node Package Manager) or yarn

Clone the Repository

  1. Open your terminal or command prompt.
  2. Change the current working directory to the location where you want to clone the project.
  3. Run the following command to clone the repository:
    git clone https://github.com/your-username/shop-n-comp.git
    Replace your-username with your actual GitHub username.
  4. Change into the project directory: cd shop-n-comp

Install Dependencies

  1. After navigating to the project directory, install the required dependencies using npm or yarn:
    Using npm:npm install
    Using yarn:yarn install

Build the Project

  1. To build the project, run the following command:
    Using npm:npm run build
    Using yarn:yarn build

Start the Development Server

  1. To start the development server and view the application in your browser, use the following command:
    Using npm:npm start
    Using yarn:yarn start
    This will start the development server, and the application will be accessible at http://localhost:8080.

Running Tests

  1. To run tests, use the following command:
    Using npm:npm run jest-test
    Using yarn:yarn jest-test

Now you have successfully set up and run the Computer E-Commerce Application project locally on your machine. You are welcome to explore and contribute the project!

Available Scripts

start: Starts the development server using webpack and serves the application in development mode.
build: Bundles the application using webpack in production mode for deployment.
lint: Runs ESLint to check for linting errors in the project's files.
format: Formats the project's TypeScript files using Prettier to ensure consistent code style.
clear-dist: Removes the dist directory and its content.
jest-test: Runs Jest to execute unit tests defined in the project.
jest-generate-report: Runs Jest with coverage enabled to generate a test coverage report in the Coverage folder.
prepare: Installs Git hooks using Husky to facilitate pre-commit and pre-push actions.

Make sure to run prepare script after the first npm install!

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 84.3%
  • SCSS 14.2%
  • JavaScript 1.2%
  • Other 0.3%