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.
Ron Reciproco d52fa7f45e S62 Added 12 months ago
..
controllers S52 Capstone 2 Added 1 year ago
model Capstone 2 update resources [readme.md] for details 1 year ago
routes S52 Capstone 2 Added 1 year ago
.env Added S49 Capstone 2 1 year ago
.gitignore Added S49 Capstone 2 1 year ago
.prettierrc Added S49 Capstone 2 1 year ago
auth.js Done Capstone 2 1 year ago
csp2-postman.json S62 Added 12 months ago
index.js S52 Capstone 2 Added 1 year ago
package-lock.json Added S49 Capstone 2 1 year ago
package.json Added S49 Capstone 2 1 year ago
readme.md S52 Capstone 2 Added 1 year ago

readme.md

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()