This application showcases the behavior of a clothing e-commerce, allowing users to select various products for purchase. It displays a summary of the selected products and simulates a purchase. Additionally, the application features a credit card validator in the payment view and provides a transaction summary.
In conclusion, the application is built with React and Vite. You can check the demo version here.
Make sure you have Node.js and npm installed on your machine before running the application.
- Clone this repository:
git clone https://github.com/alejor64/credit-card-payment.git
- Navigate to the application directory:
credit-card-payment
cd credit-card-payment
- Install dependencies:
yarn install
To run the application in your local environment, use the following command:
yarn dev
This will start the application at http://localhost:5173.
Unit tests are configured with Jest. You can run the tests in watch mode using the following command:
yarn test
src
├── domain/
│ ├── application/
│ │ ├── selectors/
│ │ ├── slices/
│ │ ├── constants.js
│ │ ├── helpers.js
│ ├── infrastructure/
│ │ ├── routes.js
│ ├── presentation/
│ │ ├── assets/
│ │ ├── component/
│ │ ├── pages/
├── router/
│ ├── AppRotuer.jsx
│ ├── routes.js
├── shared/
│ ├── application/
│ │ ├── theme/
│ │ │ ├── color.scss
│ │ │ ├── constants.scss
├── store/
│ ├── index.js
│ ├── store.js
├── tests/
│ ├── domain/