It is an ecommerce website with features such as user authentication and add to cart.
Clone the project
git clone https://github.com/KGan31/Best-BuyGo to the project directory
cd Best-BuySetting up backend
cd backendInstall dependencies
npm installStart the server
npm run devSetting up frontend
cd frontendInstall dependencies
npm installConnect backend to frontend
cd components/helper.js
Change BASE_URL = ADDRESS_OF_SERVERUpload images to cloudinary
cd pages/Sell.js
Change cloudinary_response = await fetch(`https://api.cloudinary.com/v1_1/${CLOUDINARY_CLOUD_NAME}/image/upload`)Start the server
npm run startTo run this project, you will need to add the following environment variables to your .env file
Setup environment variables for backend
cd backend
type nul> .envAdd the following variables:
PORT
MONGO_URI
SECRET
CLOUD_NAME (Cloudinary cloud name)
CLOUD_KEY (Cloudinary cloud key)
CLOUD_KEY_SECRET (Cloudinary cloud key secret)
To checkout the project visit:
https://64da3a4b708b8048a8d1c425--stellular-cendol-13d4af.netlify.app/#/
Video Demo Link: https://youtu.be/5no363zm1N8
