Skip to content

yaviner/teaching-blog-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog Server

Barebones example blog for teaching purposes complete 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

posts

id title summary full_text 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_PASSWORD=mypass DB_NAME=blog nodemon index.js

About

Simple blog server for teaching Relational Databases & Web Applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors