Description
mern-ecommerce is an online store starter built with the MERN stack. The frontend uses Vite with React, the backend uses Node.js and Express, and the data is stored in MongoDB. Shoppers can browse all products, open a single product, search, and filter products by category and price range. They can add items to a cart, check out, and register and sign in to an account. The data model covers categories, orders, products and users, and the users table has a role field so the shop can tell customers from admins. The README walks through creating a MongoDB Atlas database, setting the environment variables, including the Braintree keys used for payments, and starting the backend and frontend together with one command. Because you run and host the code yourself, it suits developers who want a working e-commerce base to customise rather than a hosted store.…
Highlights
- Browse, search and filter products by category and price
- Cart and checkout with Braintree payments
- User registration and sign-in
- Orders, products and users stored in MongoDB
- Vite and React frontend with an Express backend
Ratings & Reviews
No ratings yet
Be the first to rate Mern Ecommerce.
People also visit
Mern Marketplace
A MERN stack based online marketplace application [Full-Stack React Projects]
Eshop Mean
Ecommerce MEAN Stack ( MongoDB, Express and Node in Nest.js, Angular 20 SSR
PERN-Store
A full-stack e-commerce project built with Postgres, Express, React and Node
Mern Ecommerce FAQ
What is mern-ecommerce?
An online store template built with MongoDB, Express, React and Node.js, with a Vite frontend and an Express backend.
What do I need to run it?
Node.js, npm, a MongoDB database (the README uses MongoDB Atlas), and Braintree details in the .env file if you want payments.
How do I start it?
Clone the repository, install the backend and frontend packages, create the .env file, and run the start command so both servers start together.
Does it take payments?
Checkout is set up for Braintree, so you need your own Braintree merchant ID and keys in the environment file.
Where is the code?
On GitHub at ashraf-kabir/mern-ecommerce.
What are the best Mern Ecommerce alternatives?
Popular alternatives to Mern Ecommerce include E Commerce Store, Mern-Ecommerce-website and Mern Marketplace. See all Mern Ecommerce alternatives
