- a new ejs to GET the form
- need body-parser to transfer form ele to js
- POST new ele in /movies
- /movies: POST route communicate with GET route to work right
Style movies page(Using Bootstrap)
- header
- image grid
- nav bar
- install mongoose
- setup movies model
Add Show Page for Specific Movies
- Add movies description to DB attributs
- db.collection.drop() // delete collection in DB
- add description .ejs
Export mongoose model as module
Adds Comments for Each Movies
Create Nested Comments Route && Add New Comments
- GET and POST comment page(SHOW)
- GET movie/:id to display comments (CREATE)
Style Show Page(bootstrap & csss)
Deal with Loggin/out Register Display Problem
Comment Showing Username Automatically && Associate User and Comment
Associate Movie and User && Only Authenticated User Could Add Movie
- Authorize owner to edit or delete his/her movie
Comment Owner Delete Comment