backend of Firewheel -> BaseURL
- express : for setup the server
- mongoose : for makign connections between server and mongodb
- JWT : for jwt authentication
- bcrypt : for encrypting the password
-
MongoDB : for storing details
-
nodemon
login -> localhost:3500/users/login {post}
register -> localhost:3500/users/register {post}
getall -> localhost:3500/products/
getById -> localhost:3500/products/:id
update -> localhost:3500/products/update/:id
delete -> localhost:3500/products/delete/:id
filter -> localhost:3500/products/filter?product_rating
find qurey -> localhost:3500/products/?product_name=1212121212121212raj (anything from schema)
Method : post -> localhost:3500/products/add
{
"product_id": 332,
"product_img": "https://assets.firestonecompleteautocare.com/content/dam/bsro-sites/global/images/tires/full-60/h175/TuranzaEL40002RFT.png",
"brand_img": "https://assets.firestonecompleteautocare.com/content/dam/bsro-sites/global/images/tires/brands/Bridgestone_logo.png",
"product_name": "Mayank raj",
"average_rating": "",
"review_count": "",
"product_specs": "chikkuuu",
"stability": "Stability: Mayank",
"traction": "Traction: Mayank",
"dry_traction": "Dry Traction: Mayank",
"ride_comfort": "Ride Comfort: Mayank",
"tire_wear": "Tire Wear: Mayank",
"wet_traction": "Wet Traction: 8",
"noise_level": "Noise Level: Mayank",
"__v": 0
}
getall -> localhost:3500/cart/
add -> localhost:3500/cart/add
delete -> localhost:3500/cart/delete/:id