{
"email": "admin@gmail.com",
"password": "123456"
}
User Login
{
"email": "user@gmail.com",
"password": "123456"
}
(Stripe) Card Payment Details
4000 0027 6000 3184
Any future Date
Any three digit
-
Create a .env file inside backend/config.
-
Copy the following lines and specify appropriate values.
PORT = 4000
NODE_ENV = DEVELOPMENT
DB_URI = mongodb+srv://<username>:<password>@mern.apqfp.mongodb.net/<collection-name>?retryWrites=true&
JWT_SECRET =
JWT_EXPIRES_TIME = 7d
COOKIE_EXPIRES_TIME = 7
CLOUDINARY_CLOUD_NAME =
CLOUDINARY_API_KEY =
CLOUDINARY_API_SECRET =
STRIPE_SECRET_KEY =
STRIPE_API_KEY =
SMTP_HOST = smtp.mailtrap.io
SMTP_PORT = 2525
SMTP_EMAIL =
SMTP_PASSWORD =
SMTP_FROM_EMAIL = noreply@shopit.com
SMTP_FROM_NAME = ShopIT
Install dependencies
npm install
cd frontend
npm install
For running Server
npm run dev
For running Client
npm start