Skip to content

# πŸ›’ Welcome to our eCommerce application! This platform replicates real-world shopping experiences in a digital environment β€” from product discovery to checkout β€” delivering a smooth, interactive, and confidence-boosting journey for every user .

License

Notifications You must be signed in to change notification settings

Leanid2000/eCommerce-Application

Repository files navigation

Frontend tutorial project: "Last_Breath"

Π•able of contents
  1. Description of the project and its purpose
  2. Technology stack
  3. Installing and running the application in a local repository, operation

1. Description of the project and its purpose

This project work was completed as part of the RS School course . A learning project built using React and Vite. This is a single-page application (SPA) that supports user registration, authentication, profile editing, and photo card management. Developed as part of the Yandex Practicum curriculum. Project Goals:

  • Strengthen skills in React and Vite development
  • Practice writing clean, typed code using TypeScript
  • Learn to use automation tools (ESLint, Prettier, Husky, lint-staged)
  • Configure a modern development environment for frontend projects
  • Prepare for teamwork and collaborative coding

2. Technology stack

React Logo React Router Logo CSS3 Logo HTML5 Logo TypeScript Logo Vite Logo Vitest Logo ESLint Logo Prettier Logo Stylelint Logo Husky Logo Dotenv Logo Sass Logo

3. Installing and running the application in a local repository, operation

Available Scripts

  • npm run dev – Starts the development server using Vite.
  • npm run build – Compiles TypeScript and builds the project for production.
  • npm run preview – Previews the production build locally.
  • npm run lint – Runs ESLint to analyze code for problems.
  • npm run lint:fix – Automatically fixes linting errors using ESLint.
  • npm run format – Formats all files using Prettier.
  • npm run format:check – Lists files with formatting differences (without applying changes).
  • npm run stylelint – Checks all CSS and SCSS files for style issues.
  • npm run stylelint:fix – Automatically fixes style issues in CSS and SCSS files.
  • npm run prepare – Prepares the project for Husky Git hooks.
  • npm run test – Run tests using Vitest.
  • npm run precommit – Run lint-staged before commit.

Setup & Run Locally

  1. Clone the repository:
    git clone https://github.com/internMichael-JS/eCommerce-Application.git
        cd eCommerce-Application
  2. Install dependencies:
    npm install
  3. Create .env file:
    CTP_API_URL=https://api.europe-west1.gcp.commercetools.com
  4. Run in development mode:
    npm run dev
  5. Build for production:
    npm run build
  6. Preview build locally:
    npm run preview

Getting API client data

  • Subscribe to Composable Commerce.
  • In the Merchant Center, click Settings > Developer settings.
  • On the API clients tab, click Create new API client:
    • Enter a name for your API client.
    • Select the scopes for your API Client.
  • Click Create API client.
  • From the drop-down, select Environment Variables (.env) and click the download icon.
  • Add the downloaded .env file to the project.

About

# πŸ›’ Welcome to our eCommerce application! This platform replicates real-world shopping experiences in a digital environment β€” from product discovery to checkout β€” delivering a smooth, interactive, and confidence-boosting journey for every user .

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors