Barebones example blog for teaching purposes complete with authentication (!), backed by a MySQL database.
You must have a MySQL database available to connect to. It should have the following tables, at minimum:
id | username | hash |
---|
id | title | summary | full_text | image | date |
---|
npm install
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