Paridhan is an e-commerce website and Discovery Platform for Fashionable Men and Women Features
- Front-end: ReactJs, Css, Redux, ChakraUi, React-router-dom ,React-Redux, NodeJs, MongoDB, Express, Mongoose, Bcrypt, JWT
- Version control: Git and GitHub.
- Hosting: Vercel
{
"name": "Sourav Kumar",
"email": "[email protected]",
"password": "password",
"mobile": 0000000000
}
{
"_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.[{
"_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.{
"_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{
"name": "Sourav Rajak",
"mobile": 1111111111
}
{
"_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{
<!-- res.json("User profile deleted successfully") -->
}
Get a list of all available products.
[{
"_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.
{
"_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{
"name": "Updated name",
"price": 1599,
"discPrice": 499
}
{
"_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{
<!-- res.json("Product deleted successfully") -->
}
{
"product": "123",
"quantity": 2
}
{
"_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.
{
"_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
}
Place an order for a user's shopping cart.