Ecommerce Site using MERN stack
API Repo https://github.com/Kunal-Vijay/ecommerce-api
baci.mp4
- MERN
- Redux / Redux-toolkit
- Styled jsx
- Material UI
- Axios
- JSON Web token
- Cryptojs
- Stripe
VARIABLE | Sample value |
---|---|
REACT_APP_BASE_URL | https://baci-ecommerce-api.onrender.com |
REACT_APP_STRIPE | stripe test key |
- Install Node.js
- Install npm
- If you plan to use a local instance of MongoDB database, install MongoDB atlas.
- Clone this github repo.
- In the local project directory, create a new file called "
.env
". - Setup the environment variables as described above.
- Open the local project directory in a terminal, and run:
npm install
.
cd client
Runs the front-end client app in the development mode.
Open http://localhost:3000 to view it in the browser.
cd server
Clone backend api from here https://github.com/Kunal-Vijay/ecommerce-api
Runs the back-end server app in the development mode.
Open http://localhost:5000 to view it in the browser. Please note that the server requires an active instance of the MongoDB database. Either provide a MongoDB atlas link in the URI
environment variable, or use a local database, by placing its DATABASE in the same.