Loading repository data…
Loading repository data…
ashu130698 / repository
A modern, minimalist e-commerce platform built with the MERN stack (MongoDB, Express, React, Node.js) and TypeScript.
A modern, minimalist e-commerce platform built with the MERN stack (MongoDB, Express, React, Node.js) and TypeScript.
helmet, cors, and express-rate-limit for production safety.git clone <your-repo-url>
cd shopscale
cd backend
npm install
Create a .env file in the backend/ directory using .env.example:
PORT=4000
DB_USER=your_db_username
DB_PASSWORD=your_db_password
DB_HOST=your_cluster.mongodb.net
DB_NAME=shopscale
JWT_SECRET=your_jwt_secret
FRONTEND_URL=http://localhost:5173
Run the backend:
npm run dev
cd ../frontend
npm install
Create a .env file in the frontend/ directory:
VITE_API_BASE_URL=http://localhost:4000/api
Run the frontend:
npm run dev
ISC