Skip to content

msteblu/TechBlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tech Blog (MVC)

License: MIT

MySQL Express.js

This application provides a blog site where developers can publish blog posts and comment on others' blog posts. It provides users a space to discuss and learn with each other.

With Express.js APIs, it uses Handlebars.js for templating, Sequelize and MySQL2 to connect to a MySQL database, and the express-session package for authentication purposes.

Table of Contents

Installation

To use this application, navigate to the deployed Heroku site.

To install this application locally yourself, download and clone the files from this repository. Create your own .env file (for the database name, your user, and your password). Run 'npm install' to install the packages in the package.json (required packages include express, mysql2, sequelize, handlebars, dotenv, bcrypt, express-session, express-handlebars, and connect-session-sequelize).

The schema.sql file can be used to create a MySQL database, and the seeds files can populate the database (by running 'npm run seed' in the command-line). The server can then be started in the command-line by running 'npm start,' and the application can be viewed on your local browser at localhost.

Usage

If you use the application through the deployed Heroku site, simply navigate to and interact with the site from there. Before viewing any of the links, the blog will prompt you to login or signup. Create an account, and from there, you are able to access all of the blog posts on the Homepage (and have the ability to comment). You also are able to access your own posts on the Dashboard, where you can create a new post, or update/delete one of your previous posts.

If the program was cloned, downloaded, and installed instead, get the application running by typing "npm start" into the command-line. All features of the application are then accessible through localhost on your browser or other applications.

View Blog Posts and Comment Gif of Homepage

Interact with Individual Dashboard Gif of Dashboard

License

This project is licensed under MIT License.

Questions

See more of my work on my GitHub Profile. For any additional questions, reach me at my email: megan@steblay.net.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published