This full-stack project involved creating a CMS-style bloggin site following the MVC architectural paradigm. The website allows users to create an account, create blog posts, edit and delete blog posts, and comment on blog posts. When a user has been inactive for 20 minutes, the session timesout and the user is automatically logged out. Features and technologies of this project include:
- Sequelize and ORM
- Express (including sessions)
- Express Handlebars for views
- MySQL
- Additional packages including dotenv and bcrypt
- Deployed to Heroku
Click here for the deployed URL
- To install the necessary packages to run this application, run
npm install
in your CLI - To use the database: change the credientials in
config/connection.js
to your own and runschema.sql
in your database management application - To use the application in a localhost run
node server.js
The following screenshot demonstrated the homepage as a logged in user:
When a user loggs in, they are presented with their dashboard which allows them to create blog posts, view their blog posts and delete their blog posts:
They can view blog posts, add comments and (if it is their own blog post) they can edit their blog post:
If a user is logged out, they will not be able to edit or add comments:
This project was created under the MIT License