Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/rdshinde/swadeshi-backend

swadeshi-backend using MongoDB and Express
https://github.com/rdshinde/swadeshi-backend

express-js midd mongodb nodejs

Last synced: 10 days ago
JSON representation

swadeshi-backend using MongoDB and Express

Awesome Lists containing this project

README

        


Swadeshi Ecomm Backend




The backend for ecomm app.

## **How to install and run locally ?**

```
$ git clone https://github.com/rdshinde/swadeshi-backend.git
$ npm install
$ npm start
```

## **Features -**

- Create Users.
- Create Categories.
- Create Products.

- User Cart Management
- Add to Cart.
- Update Cart.
- Move to wishlist from Cart.

- User Wishlist Management
- Add to Wishlist
- Move to cart from Wishlist
- Delete from Wishlist

- Products Management
- Add new products
- Fetch all products
- Fetch Single products

- Manage User Address.
- Add new address
- Edit address
- Delete address

- Authentication
- User Signup
- User Login

## **Built with -**

- Node JS
- Express JS
- Mongo DB Atlas
- Mongoose

## **How to Use? -**

#### 1. API Endpoint: ` / `
Method: `GET`
Response
```json
{
"title": "Swadeshi-Ecomm-App",
"description": "This is backend for E-commenrce app.",
"author": "Rishikesh Shinde",
"features": [
"Auth-Management",
"Products-Management",
"Cart-Management",
"Wishlist-Management"
],
}
```
Description: This endpoint returns the app description.

# Products Management

#### 2. API Endpoint: ` /products `
Method: `GET`
Response
```json
{
"success": true,
"products": []
}
```
Description: This endpoint returns the products listed on DB.

#### 3. API Endpoint: ` /products `
Method: `POST`
```javascript
body:{...Product}
```
Response
```json
{
"success": true,
"products": []
}
```
Description: This endpoint returns the products listed on DB.


#### 4. API Endpoint: ` /products/:id `
Method: `GET`
Response
```json
{
"success": true,
"products": [
{}
]
}
```
Description: This endpoint returns the single product.


## **Live Project -**

Here it is [Swadeshi Ecomm Backend](https://swadeshi-ecomm.herokuapp.com/)