Skip to content

fchoi1/tech-blog

Repository files navigation

Tech Blog

Description

This is a simple application to use MVC moddel with node js to connect to sql database and access REST apis. This is an application to view a tech blog with users to create, edit and delete posts as well as add comments. Techonologies mysql2, dotenv, express, sequelize, MVC model.

Link to Application

Tech Blog

Table of Contents

Installation

This is for local install if you want to deploy the appliaction yourself

  1. clone repo on github
  2. Install any required dependancies
    npm install
  1. Enter your SQL database crendentials in .env file (see .env.Example)
    DB_HOST=<database hostname>
    DB_NAME=tech_blog_db
    DB_USER=<database user>
    DB_PASS=<database password>
  1. Login to SQL on command line
    mysql -u <user> -p
  1. Create database by running the schema
    sourec db/schema.sql
    quit
  1. (Optional) Seed values for db
    npm run seeds
  1. Start the application on nodeJS
    npm start

Usage

  1. Once the application is started go to application website (default: https://localhost:3001)
  2. Homepage, ability to see all posts,
  3. Login page with option to create a new user
  4. Dashboard available after login.
  5. Create new a post
  6. Dashboard displays all posts created by user with ability to edit post
  7. User can edit post content and title or delete post. Additionally user can also add comments to post here.
  8. Clicking on Post title redirects to post details and comments

Credits

N/A

License

This application is under the MIT License
For more information please view here: MIT Description

License: MIT

Contributions

Feel free to clone and improve on this application!

Tests

Demo Video

Questions

See more about my Github here: Fchoi1
Any burning questions you want to ask me?
Reach out to me! [email protected]

About

Simple blog to post, and reply to new tech!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published