This project is an e-commerce application developed as the final assignment of RSSchool 2023Q4 Stage 2. It serves as an online platform for buying and selling clothing items. It aims to provide users with a user-friendly and intuitive interface to browse products, add them to their basket and make online purchases. This project uses Node version 20.12.2.
| Category | Name | Version |
|---|---|---|
| Language | TypeScript | 5.4.5 |
| Bundler | Webpack | 5.91.0 |
| IDE | VS Code | 1.88.1 |
| Preprocessor | SASS | 1.75.0 |
| Linters | ESLint | 8.57.0 |
| Code Formatter | Prettier | 3.2.5 |
| Testing | Jest | 29.7.0 |
| Dev Server | Webpack Dev Server | 5.0.4 |
In the project directory, you can run:
Runs Jest to execute tests.
npm run test
Starts the development server using Webpack in development mode.
npm run start
Builds the project after running tests using Jest and Webpack.
npm run build
Builds the project without running tests.
npm run build-without-tests
Formats the code using Prettier.
npm run format-code
Lints the source code using ESLint.
npm run lint
Lints the source code using ESLint and fixes any fixable errors.
npm run lint:fix
Installs Husky hooks for pre-commit and pre-push.
npm run prepare
Follow these step-by-step instructions to set up and run the project locally on your machine:
-
Clone this repository.
git clone https://github.com/Ifedserge/eCommerce.git -
Move to the project folder.
cd ecommerce -
Run the following command to install project dependencies.
npm install -
Start the development server.
npm start -
Open the project in your web browser.
http://localhost:8080