You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5.0 KiB

E-COMMERCE API DOCUMENTATION

INSTALLATION COMMAND:

npm install bcrypt cors dotenv express faker jsonwebtoken mongoose nodemon

Start npm start

TEST ACCOUNTS:

ROUTES:

** Stretch Goals **

  • Set user as Admin ( Admin Only )
  • Retrieve Authenticated User's Orders
  • Retrieve all orders ( Admin Only )
  • Add to Cart ( Added Products, Change Product Quantities, Remove Products From Cart, Subtotal for each item, Total price for all items)
  • Authentication Token with expiration (1hr)
  • dotenv
  • faker (Auto Generate Names)
  • getUserDetails function ( Detects if the user tries to get the details of the other useId's + Token auth)
  • Middleware Secure verification that match Token and UserId to next()