Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/rgvirer/project_node

E Commerce Website backend using Node.js
https://github.com/rgvirer/project_node

expressjs html javascript mongodb mongoose nodejs

Last synced: about 2 months ago
JSON representation

E Commerce Website backend using Node.js

Awesome Lists containing this project

README

        

# E-Commerce Website Backend - Node.js & Express

## Overview
This is the backend for an E-Commerce website built using Node.js and Express. It provides APIs for managing products, user authentication, and shopping cart functionality. The data is stored in a MongoDB database, and authentication is handled via JWT (JSON Web Tokens).

## Features
- **Product Management**: API endpoints for adding, updating, deleting, and retrieving products.
- **User Authentication**: User registration, login, and JWT-based authentication.
- **Shopping Cart Management**: APIs to manage items in a user's cart.
- **Order Management**: APIs for placing and viewing orders.
- **Database**: MongoDB is used as the database to store product and user data.

## Tech Stack
- **Node.js**: Server-side JavaScript runtime.
- **Express.js**: Web framework for building RESTful APIs.
- **MongoDB**: NoSQL database for storing data.
- **Mongoose**: MongoDB object modeling tool.
- **JWT (JSON Web Token)**: For user authentication and authorization.
- **bcryptjs**: For password hashing.
- **dotenv**: To manage environment variables.

## Installation and Setup
Follow the instructions below to set up and run the project locally.

### Prerequisites
- Node.js (v14 or higher)
- MongoDB (either locally installed or a cloud instance like MongoDB Atlas)
- npm or yarn

### Steps

1. **Clone the repository**:
```bash
git clone https://github.com/your-username/your-backend-repo.git
cd your-backend-repo

## Live Demo
[Visit the live website](https://homedesignstore.netlify.app)

![home](https://github.com/user-attachments/assets/5761bd74-1804-437c-bc08-1ff0f2933349)
![ClickonPhoto](https://github.com/user-attachments/assets/de6853eb-2ef1-47fe-bd18-76ce5ded773d)
![product](https://github.com/user-attachments/assets/ebf46efa-dbbb-4ce0-8475-28752951caf1)
![product2](https://github.com/user-attachments/assets/a61d516d-9be4-4f1d-be1a-be86583097ab)
![allProducts](https://github.com/user-attachments/assets/dcb4de14-3dad-4b3f-8d80-3cc5308b99e1)
![shoppingCartInProductsPage](https://github.com/user-attachments/assets/0ae2bf7f-a8f1-4e77-ad53-9273ce7ee99d)
![ShoppingCart](https://github.com/user-attachments/assets/08d99909-ed7b-411b-928d-cf670e7b7337)
![login](https://github.com/user-attachments/assets/6d2fedb0-ebec-4f61-92d2-690ab1daf40f)
![signup](https://github.com/user-attachments/assets/b11175e6-8f0b-4e09-931a-235a61833875)