Skip to content

SQL - A CMS-style blog site similar to a WordPress site, where devs can publish their blog posts and comment on other devs’ posts

License

Notifications You must be signed in to change notification settings

pamelac21/Tech-Blog

Repository files navigation

Tech Blog

Description

I want to build a CMS-style blog site similar to a Wordpress site, where developers can publish their blog posts and comment on other developers’ posts as well. I will follow the MVC paradigm in its architectural structure, using Handlebars.js as the templating language, Sequelize as the ORM, and the express-session npm package for authentication.

Table of Contents

User Story

AS A developer who writes about tech
I WANT a CMS-style blog site
SO THAT I can publish articles, blog posts, and my thoughts and opinions

Deployed Site

https://secure-sands-16724.herokuapp.com/

screencapture-secure-sands-16724-herokuapp-2022-02-26-18_02_17

Installation


Clone the repo


Use npm install to install dependecies.
npm install

Log into MySQL.
mysql -u <user> -p
Enter password.

Source the schema.
source db/schema.sql

Quit MySQL and seed the database.
quit node seeds

Start the server.
npm start

Usage

Once the server is started, visit localhost:3001. Users can sign up and log in. 
Once logged in, they will have two new options in the navigation bar. `dashboard` will take them to a page where they can create a new post, view previous posts (which they can select to edit or delete), or they can select `logout` . If they do not wish to make a post they can visit other users posts by either clicking on the title or comments. 
Here the user can see all the comments for this post and they can leave one of their own. If the user wishes to return to the homepage they can click on 'Tech POST' to take them back to the home page.

Tech Used

express-handlebars

MySQL2

Sequelize

dotenv package

bcrypt package

express-session

connect-session-sequelize

express-session

Contributing GitHub

Github

Email me

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

SQL - A CMS-style blog site similar to a WordPress site, where devs can publish their blog posts and comment on other devs’ posts

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published