Skip to content

Simple blog server for teaching Relational Databases & Web Applications

Notifications You must be signed in to change notification settings

mppmpp315/teaching-blog-server

 
 

Repository files navigation

Blog Server

Barebones example blog with authentication, backed by a MySQL database.

Prerequisites

You must have a MySQL database available to connect to. It should have the following tables, at minimum:

users

id username hash salt

posts

id title summary fulltext image date

Installing

npm install

Running

You need to pass appropriate environment variables in order for the database connection to be made. Example: DB_USER=myuser DB_PASS=mypass DB_NAME=blog nodemon index.js

About

Simple blog server for teaching Relational Databases & Web Applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 37.0%
  • CSS 35.2%
  • HTML 27.8%