$ git clone https://github.com/GauravSah21/Agriproduct.git
$ cd AgriProduct
<<<<<<< HEAD
- created to .env in backend an frontend and =======
- create .env in backend and frontend folder the veriable
Backend .env
JWT_SECRET=
MONGODB_URI=
CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_URL=
CLOUDINARY_API_SECRET=
GOOGLE_API_KEY=
MAILGUN_DOMIAN=
MAILGUN_API_KEY=
Frontend .env
REACT_APP_KHALTI_PUBLIC_KEY=
REACT_APP_KHALTI_SECRET_KEY=
- Local MongoDB
- Install it from here
- In .env file update MONGODB_URI=mongodb://localhost/AgriProduct
- OR Atlas Cloud MongoDB
- Create database at https://cloud.mongodb.com
- In .env file update MONGODB_URI=mongodb+srv://your-db-connection
$ cd backend
$ npm install
$ npm start
# open new terminal
$ cd frontend
$ npm install
$ npm start
- Run this on browser: http://localhost:5000/api/seed
- It returns admin email and password and 6 sample products
- Run http://localhost:3000/signin
- Enter admin email and password and click signin