WebWear is a modern fashion e-commerce site designed to deliver a seamless shopping experience. It integrates a React frontend with a Node.js + Express backend, secured with JWT and powered by MongoDB for data persistence. Cloudinary is used for image uploads and PayPal for payment processing.
/client β React Frontend
/server β Node.js + Express Backend
/.env β Environment variables (server)
Create a .env
file inside the server
folder and add the following:
PORT=3000
DB_URL="your DB url"
SECRET_KEY='your key'
CLOUD_NAME= your cloud name
API_KEY= cloud api key
API_SECRET=cloud secret key
CLIENT_ID="paypal client id"
PP_SECRET_KEY="paypal secret key"
β οΈ Warning: Never expose your
.env
file publicly or commit it to version control.
git clone https://github.com/yourusername/webwear.git
cd webwear
Install frontend:
cd client
npm install
Install backend:
cd ../server
npm install
Start the backend server:
cd server
npm run dev
Start the frontend server:
cd ../client
npm start
http://localhost:5173
http://localhost:5000