A CMS-style blog site that allows the user to create blog posts and comment on other user posts. The user can also edit and delete their posts.
Run npm i
to install the required packages.
Create an .env file to create the necessary database information such as
- DB_USER = ''
- DB_PW = ''
- MYSQL_HOST = ''
- MYSQL_PORT = ''
- DB_NAME = ''
- NODE_ENV = ''
-
The user must first run the schema.sql file on their MySQL server to create the tech-blog database.
-
The user can then start the server using Node.
-
Then go to http://localhost:3001 in browser to test the site.
-
In order to create posts, the user must login on the Login page or create an account on the Sign Up page
- MySQLWorkbench - Visual database design tool
- Node.js - JavaScript runtime environment
- mysql2 - Used to connect to the MySQL database and perform queries
- Express - For routing.
- Sequelize - Sequelize is a promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite and Microsoft SQL Serve
- Handlebars Formatting.