A blog website made using MERN stack. User can register himself on site, his mail address and password(hashed) saved in our database and he also get error messages like password doesn’t match, email already registered etc. After registration is completed he can go to login page where his email and password get authenticated and also get error messages if authentication fails and he gets back to login section, once authentication is completed he can go to feed page.
Feed page contain:
- All blog posts of different users
- Profile Section
A single blog contain (on feed page):
- Name of the author, one can go to author profile by clicking on it.
- Title (given by author), one can see the markdown section by clicking on it
- Description (given by the author)
- Date on which the blog is created
- Number of likes
- Like and comment button
- Uploaded picture
Profile Section:
- User name and other details.
- All the posts created by user (this posts also contain edit and delete button for editing and deleting the post)
- Create button(for creating new blog)
- Logout button
Creating new post section:
- Takes 4 inputs
- Title: Heading of blog
- Description
- Markdown: Detailed content
- Image
Readmore section contain:
- Title
- Description
- createdAt(date)
- Mardown
- Number of likes
All section except for feed section contain home button so user can go to feed section easily. An error page render when user search for url that doesn't exist.
Langauges used: html, css, javascript, node.js
Database: mongodb
Frameworks used: Express.js, Mongoose.js
Templating engine: EJS
Dependancies used: Passport.js, Bcrypt, connect-flash, Multer, Socket.io, Slugify, Markdown
Modules used: path, method-override, fs