Skip to content

vkpati20/Top-Places-Blog

Repository files navigation

Top Places Blog v1

This website allows you to post reviews on best cities in the world. Users can add/edit/delete a place, add/edit/delete a comment, and view others posts.

Foler Setup

 Middleware: To handle all the authentication logic.
 Models: To define mongoose schema for Places, Users, and Comments.
 Public: To store stylesheets.
 Routes: To define routes.
 Views: To store all the .ejs files.

RESTful Routes

This website follows RESTful routes
 INDEX: Displays all blog posts.
 NEW: Shows form to create a new place or comment.
 CREATE: Creates a new place or comment.
 SHOW: Shows one specified blog post with associated comments.
 EDIT: Shows edit form for one specified blog post or comment.
 UPDATE: Updates a perticular place or comment.
 DESTROY: Deletes a perticular place or comment.

Stack

HTML, CSS, JavaScript, Node.js, Express, Mongoose

Dependencies (npm i dependency --save)

body-parser
connect-flash
dotenv
ejs
express
express-session
method-override
mongoose
passport
passport-local
passport-local-mongoose