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