Skip to content

WebDevMullins/MVC-Tech-Blog

Repository files navigation

Tech Blog · GitHub license

.ENV Badge Handlebars.js Badge Insomnia Badge MySQL Badge Node.js Badge Sequelize Badge Tailwind CSS Badge

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.

Table of Contents

Installation

Clone repo to destinaton.

git clone https://github.com/WebDevMullins/mvc-tech-blog.git

Install dependencies using:

npm install

Rename the .env.EXAMPLE file to .env. Update with your credentials.

DB_NAME=databasename #replace with the database name
DB_USER=yourusername # replace with your user name
DB_PASSWORD=yourpassword # replace with your password

Databse Setup

Log in to MySQL, and use the following command to set up database:

source db/schema.sql

In a terminal, run the following command to seed the database:

npm run seed

Usage

From the root directory, run the following to start the application:

npm run start

Demo

image

License

Tech Blog is MIT licensed.