Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rdshinde/swadeshi-backend
- Owner: rdshinde
- Created: 2022-08-16T07:30:01.000Z (over 2 years ago)
- Default Branch: dev
- Last Pushed: 2022-12-15T15:28:09.000Z (about 2 years ago)
- Last Synced: 2023-03-09T02:26:58.600Z (almost 2 years ago)
- Topics: express-js, midd, mongodb, nodejs
- Language: JavaScript
- Homepage: https://swadeshi-backend.vercel.app
- Size: 63.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## **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/)