Skip to content

Paridhan is an e-commerce website and Discovery Platform for Fashionable Men and Women. | User: Sign Up page | Login page | Add products | Checkout page | Payment page | User profile Admin: Dashboard | Product, Order & User page Techstacks: React | CSS | ChakraUI | NodeJs | Mongo DB | Express | Mongoose | Bcrypt | JWTUser

Notifications You must be signed in to change notification settings

souravkkr1/paridhan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Paridhan Frontend

Click me to visit

Paridhan

Paridhan is an e-commerce website and Discovery Platform for Fashionable Men and Women Features

Tech-Stacks

  • Front-end: ReactJs, Css, Redux, ChakraUi, React-router-dom ,React-Redux, NodeJs, MongoDB, Express, Mongoose, Bcrypt, JWT
  • Version control: Git and GitHub.
  • Hosting: Vercel

Features

User:

- Sign Up Page - Login Page - Add Products - Checkout Page - Payment Page - User Profile

Admin

- Dashboard - Product Page - Order Page - User Page

API Endpoints

Users

`POST /user/signup` Create a new user account.

Request Body

{
  "name": "Sourav Kumar",
  "email": "[email protected]",
  "password": "password",
  "mobile": 0000000000
}

Response Body

{
  "_id":
  "name": "Sourav Kumar",
  "email": "[email protected]",
  "password": "password",
  "mobile": 0000000000,
  "role": "user",
  "createdAt": 2023-02-17T19:45:03.216+00:00
  "updatedAt": 2023-02-17T19:45:03.216+00:00
}

`GET /user`

Get details of all users.

Response Body

[{
  "_id":
  "name": "Sourav Kumar",
  "email": "[email protected]",
  "password": "password",
  "mobile": 0000000000,
  "role": "user",
  "address": "123 Main Rd",
  "createdAt": 2023-02-17T19:45:03.216+00:00
  "updatedAt": 2023-02-17T19:45:03.216+00:00
}]

`GET /user/:id`

Get details for specific user.

Response Body

{
  "_id":
  "name": "Sourav Kumar",
  "email": "[email protected]",
  "password": "password",
  "mobile": 0000000000,
  "role": "user",
  "address": "123 Main Rd",
  "createdAt": 2023-02-17T19:45:03.216+00:00
  "updatedAt": 2023-02-17T19:45:03.216+00:00
}

`PATCH /user/edit/:id`

Edit details of any users by _Id

Request Body

{
  "name": "Sourav Rajak",
  "mobile": 1111111111
}

Response Body

{
  "_id":
  "name": "Sourav Rajak",
  "email": "[email protected]",
  "password": "password",
  "mobile": 1111111111,
  "role": "user",
  "address": "123 Main Rd",
  "createdAt": 2023-02-17T19:45:03.216+00:00
  "updatedAt": 2023-02-17T19:45:03.216+00:00
}

`DELETE /user/delete/:id`

Delete any users by _Id

Response Body

{
<!--   res.json("User profile deleted successfully")  -->
}

Products

`GET /products`

Get a list of all available products.

Response Body

[{
  "_id": 63ed3102821264b62233c6f6,
  "name": "Notch Neck Solid Top",
  "img": "https://img3.junaroad.com/uiproducts/18404006/zoom_0-1655215443.jpg"
  "price": 1799,
  "discPrice": 699,
  "color": "pink",
  "category": "Women",
  "tags": "new arrival",
  "stocks": 10
}]

GET /products/:id Get details for a specific product.

Response Body

{
  "_id": 63ed3102821264b62233c6f6,
  "name": "Notch Neck Solid Top",
  "img": "https://img3.junaroad.com/uiproducts/18404006/zoom_0-1655215443.jpg"
  "price": 1799,
  "discPrice": 699,
  "color": "pink",
  "category": "Women",
  "tags": "new arrival",
  "stocks": 10
}

`PATCH /products/:id`

Edit details of any product by _Id

Request Body

{
  "name": "Updated name",
  "price": 1599,
  "discPrice": 499 
}

Response Body

{
  "_id": 63ed3102821264b62233c6f6,
  "name": "Updated Name",
  "img": "https://img3.junaroad.com/uiproducts/18404006/zoom_0-1655215443.jpg"
  "price": 1599,
  "discPrice": 499,
  "color": "pink",
  "category": "Women",
  "tags": "new arrival",
  "stocks": 10
}

`DELETE /products/:id`

Delete any product by _Id

Request Body

{
<!--   res.json("Product deleted successfully")  -->
}

Cart

`POST /cart` Add an item to a user's shopping cart.

Request Body

{
  "product": "123",
  "quantity": 2
}

Response Body

{
   "_id": 63f202296d63b6c8ed525eda,
   "product": 63ee31730c42bd82c1b3e53a,
   "quantity": 1,
   "user": 63f1411840da1a96cb2582c6,
   "createdAt": 2023-02-19T11:04:09.259+00:00
   "updatedAt": 2023-02-19T11:04:09.259+00:00
}

GET /cart/items Get a user's shopping cart.

Response Body

{
   "_id": 63f202296d63b6c8ed525eda,
   "product": 63ee31730c42bd82c1b3e53a,
   "quantity": 1,
   "user": 63f1411840da1a96cb2582c6,
   "createdAt": 2023-02-19T11:04:09.259+00:00
   "updatedAt": 2023-02-19T11:04:09.259+00:00
}

Orders

`POST /orders`

Place an order for a user's shopping cart.

About

Paridhan is an e-commerce website and Discovery Platform for Fashionable Men and Women. | User: Sign Up page | Login page | Add products | Checkout page | Payment page | User profile Admin: Dashboard | Product, Order & User page Techstacks: React | CSS | ChakraUI | NodeJs | Mongo DB | Express | Mongoose | Bcrypt | JWTUser

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published