The Streetwear Shop is a full-stack e-commerce application built using React for the frontend, Node.js for the backend, and MySQL for the database. This project allows users to browse products, manage their shopping cart, and authenticate their accounts. This application also provides a payment/transaction method.
streetwear-shop
├── package.json
├── .gitignore
├── README.md
├── server
│ ├── package.json
│ ├── .env
│ └── src
│ ├── index.js
│ ├── db.js
│ ├── middleware
│ │ └── auth.js
│ └── routes
│ ├── auth.js
│ ├── products.js
│ └── cart.js
└── client
├── package.json
├── index.html
└── src
├── main.jsx
├── App.jsx
├── api.js
├── context
│ ├── AuthContext.jsx
│ └── CartContext.jsx
├── components
│ └── Navbar.jsx
├── pages
│ ├── Home.jsx
│ ├── Products.jsx
│ ├── Login.jsx
│ ├── Register.jsx
│ └── Cart.jsx
└── styles.css
git clone https://github.com/dhp-exe/e-commercial-project.git
cd streetwear-shop
cd server
npm install
.env file:
DB_HOST=your_database_host
DB_USER=your_database_user
DB_PASSWORD=your_database_password
DB_NAME=your_database_name
JWT_SECRET=your_jwt_secret
cd ../client
npm install
cd server
npm start
cd ../client
npm run dev
This project is licensed under the MIT License.