Skip to content

Leon-lhy/showyourtaste

Repository files navigation

Link

https://showtaste.herokuapp.com/

Function

  • Restful routes

  • Search function

  • CRUD sneakers/comments

  • Authentication

  • Authorization

RESTful

Name URL Verb Desc db()
INDEX /shoes GET list all shoes Shoe.find()
NEW /shoes/new GET show new shoe form N/A
CREATE /shoes POST create a new shoe then redirect Shoe.create()
SHOW /shoes/:id GET show info about one shoe Shoe.findById()
EDIT /shoes/:id/edit GET edit original shoe Info Shoe.findById()
UPDATE /shoes/:id POST update a dog then redirect Shoe.findByIdAndUpdate()
DESTROY /shoes/:id DELETE delete a dog then redirect Shoe.findByIdAndRemove()
Name URL Verb Desc db()
NEW /shoes/:id/comments/new GET shoe new comment form Shoe.findById()
CREATE /shoes/:id/comments POST create a new comment then redirect Shoe.findById() Comment.create()
EDIT /shoes/:id/comments/:comment_id/edit GET shoe edit comment form Comment.findById()
UPDATE /shoes/:id/comments/:comment_id POST update a comment then redirect Comment.findByIdAndUpdate()
DESTROY /shoes/:id/comments/:comment_id DELETE delete a comment then redirect Comment.findByIdAndRemove()

STEP

  1. restfull pages of shoes, comments and db()
  2. css
  3. refactor -- router
  4. authentication -- passport-local
  5. authorization -- session, middleware
  6. flash message
  7. landing page css
  8. deploy heroku
  9. set environment variables

Releases

No releases published

Packages

No packages published