Frontend-> React JS
Backend-> Node JS & Express JS
Database-> MongoDB
git clone https://github.com/ashraf-kabir/mern-ecommerce.git
cd mern-ecommerce
npm install
cd client
npm install
go to the parent folder of mern-ecommerce & create .env for connection, JWT_SECRET, BRAINTREE_MERCHANT_ID, BRAINTREE_PUBLIC_KEY and BRAINTREE_PRIVATE_KEY.
cd mern-ecommerce
sudo nano .env
(ctrl+x to save & nano follow instruction there)
MONGODB_URI=YOUR_MONGODB_URI
JWT_SECRET=YOUR_JWT_SECRET
BRAINTREE_MERCHANT_ID=YOUR_BRAINTREE_MERCHANT_ID
BRAINTREE_PUBLIC_KEY=YOUR_BRAINTREE_PUBLIC_KEY
BRAINTREE_PRIVATE_KEY=YOUR_BRAINTREE_PRIVATE_KEY
create another .env file inside client directory for REACT_APP_API_URL.
cd mern-ecommerce/client
sudo nano .env
REACT_APP_API_URL=YOUR_API_URL
deploy this project on your local server by using this command
cd mern-ecommerce
npm run dev
1. user can view all products
2. user can view single product
3. user can search products and view products by category and price range
4. user can add to cart checkout products using credit card info
5. user can register & sign in
6. admin can create, edit, update & delete products
7. admin can create categories
8. admin can view ordered products
9. admin can change the status of a product (processing, shipped, delivered, etc.)