- Go to frontend
- run
npm install or npm i
- If still the dependencies don't install run
npm install --force
- run
npm start
to start the frontend
- To run this project, you will need to add a .env file in frontend
./frontend/.env
.env data
REACT_APP_BACKEND_URL = 'http://localhost:4000'
- Go to back-end
- run
npm install or npm i
- If still the dependencies don't install run
npm install --force
- run
npm run dev
to start the backend
MONGO DB FILE
- Upload
Farmhub/products.json
file in your mongodb Ecommerce section that will be created as you start the project As there will be produt you can see for better understanding
- To run this project, you will need to add a .env file in backend
./backend/.env
.env data
PORT=4000
MONGODB_URL= mongodb://localhost:27017
FRONTEND_URL='http://localhost:3000'
ACCOUNT_SID =ACc1f7afcb67f26ed515dd435abbcf50fb
AUTH_TOKEN =c3876c8b29e8b69264b2d41b553f839c
STRIPE_API_KEY = <YOUR API KEY>
STRIPE_SECRET_KEY = <YOUR API KEY>
Parameter | Type | Description |
---|---|---|
STRIPE_API_KEY |
string |
Required.- From Stripe Api Site for payment processors |
STRIPE_SECRET_KEY |
string |
Required.- From Stripe Api Site for payment processors |