Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dikshant441/e-commerce-mern

"Building an innovative e-commerce experience with the MERN stack, seamlessly integrating MongoDB for robust data management, Express.js for efficient backend handling, React.js for dynamic user interfaces, and Node.js for scalable server-side operations."
https://github.com/dikshant441/e-commerce-mern

braintree-payment-gateway expressjs javascript material-ui mongodb nodejs payment-integration reactjs

Last synced: about 2 months ago
JSON representation

"Building an innovative e-commerce experience with the MERN stack, seamlessly integrating MongoDB for robust data management, Express.js for efficient backend handling, React.js for dynamic user interfaces, and Node.js for scalable server-side operations."

Awesome Lists containing this project

README

        

# mern-ecommerce

> Frontend-> React JS

> Backend-> Node JS & Express JS

> Database-> MongoDB

![0](https://github.com/user-attachments/assets/9bec640e-fd69-4607-a3f1-e6cd55c42b54)
![1](https://github.com/user-attachments/assets/ac2634df-bbfe-4ad6-b6fc-a7b30d377e63)
![2](https://github.com/user-attachments/assets/e938453d-f2de-4ad1-ba40-846839cf8686)
![4](https://github.com/user-attachments/assets/78303685-f35e-491a-98de-cabd42827650)
![5](https://github.com/user-attachments/assets/dafc919f-17a7-478b-a0b6-1e70d9f6d6df)
![6](https://github.com/user-attachments/assets/9a9cf227-726c-4e1b-b90b-fa844230848a)
![7](https://github.com/user-attachments/assets/b57f1a5a-edc4-42f2-b60e-a1a0ef785f0e)
![8](https://github.com/user-attachments/assets/d15f9953-498c-4944-9ad0-f835b3130d42)

## Installation process
1. #### clone the repo using this command
```bash
git clone https://github.com/Dikshant441/E-commerce-MERN.git
```
2. #### install npm packages
1. install backend packages
```bash
cd mern-ecommerce
npm install
```
2. install frontend packages
```bash
cd client
npm install
```
3. go to the parent folder of mern-ecommerce & create .env for connection, JWT_SECRET, BRAINTREE_MERCHANT_ID, BRAINTREE_PUBLIC_KEY and BRAINTREE_PRIVATE_KEY.

```bash
cd mern-ecommerce
sudo nano .env
```
(ctrl+x to save & nano follow instruction there)


##### sample code for backend .env
```env
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
```
4. create another .env file inside client directory for REACT_APP_API_URL.

```bash
cd mern-ecommerce/client
sudo nano .env
```
##### sample code for frontend .env
```env
REACT_APP_API_URL=YOUR_API_URL
```

5. deploy this project on your local server by using this command
```bash
cd mern-ecommerce
npm run dev
```
#### note: both backend & frontend server will start at once with the above command.

6. #### Database Structure: (Table: columns)
1. categories: _id, name, createdAt, updatedAt;
2. orders: _id, status, products (Array), transaction_id, amount, address, user (Object), createdAt, updatedAt
3. products: _id, photo (Object), sold, name, description, price, category, shipping, quantity, createdAt, updatedAt
4. users: _id, role, history (Array), name, email, salt, hashed_password, createdAt, updatedAt

### App Description:
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.)

## For any queries related to the project, contact at [email protected]
7. raise a star to support me