Coder Social home page Coder Social logo

07-mayankraj / firewheel_backend Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 1.0 253 KB

backend of fireWheeeel

Home Page: https://rich-ruby-kitten-toga.cyclic.app

JavaScript 100.00%
backend-server bycrypt javascript jwt-authentication mongodb mongoose nodejs npm rest-api

firewheel_backend's Introduction

backend of Firewheel -> BaseURL

npm packages used in Firewheel

  • express : for setup the server
  • mongoose : for makign connections between server and mongodb
  • JWT : for jwt authentication
  • bcrypt : for encrypting the password

Database

  • MongoDB : for storing details

  • nodemon




API endpoints

user

    login    ->    localhost:3500/users/login    {post}
    register ->    localhost:3500/users/register  {post}

product

    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)

body for update or create new

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
    }

cart

    getall ->   localhost:3500/cart/
    add    ->   localhost:3500/cart/add
    delete ->   localhost:3500/cart/delete/:id

cart flow design

cartoperations

firewheel_backend's People

Contributors

07-mayankraj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.