Welcome to Shop.co, your go-to online clothing shop! This repository contains the source code for the web application, built with React for the frontend and Express for the backend.
- User Authentication: Secure user registration and login functionality.
- Product Catalog: Browse through a wide range of clothing items with detailed information.
- Shopping Cart: Add products to your cart and proceed to checkout.
- Order Management: View and track your order history.
- Responsive Design: Enjoy a seamless experience on both desktop and mobile devices.
- Admin Panel: Manage products, users, and orders with ease.
Before you begin, ensure you have the following installed:
- Node.js: https://nodejs.org/
- yarn: https://yarnpkg.com/
- MongoDB: https://www.mongodb.com/try/download/community/
-
Clone the repository:
git clone https://github.com/maks-kovpak/online-clothing-shop.git
-
Navigate to the project directory and install dependencies:
cd online-clothing-shop yarn install
-
Configure environment variables:
- Create a
.env
file in both theclient
andserver
directores. - In the client folder, the environment variables are exposed in the
vite-env.d.ts
file. - For the server folder, you can find the declaration of environment variables types in the
node-env.d.ts
file. - Set custom values for some variables.
- Create a
-
Start the development servers:
-
For the client:
yarn client:dev
-
For the server:
yarn server:dev
-
-
Visit http://localhost:5173 in your browser to access the application.
The project is organized into two main directories:
- client: Contains the React frontend code.
- server: Houses the Express backend code.
Feel free to explore each directory for more details.
This project is licensed under the MIT License - see the LICENSE file for details.