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 12b87b8d2f Capstone-3 Update 1 year ago
..
controllers Capstone-3 Update 1 year ago
model Capstone-3 Update 1 year ago
routes Capstone-3 Update 1 year ago
uploads Capstone-3 Update 1 year ago
.env Capstone-3 Update 1 year ago
.gitignore Capstone-3 Update 1 year ago
.prettierrc Capstone-3 Update 1 year ago
auth.js Capstone-3 Update 1 year ago
index.js Capstone-3 Update 1 year ago
multer.js Capstone-3 Update 1 year ago
package-lock.json Capstone-3 Update 1 year ago
package.json Capstone-3 Update 1 year ago
readme.md Capstone-3 Update 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()