This tech blog is a simple CMS-style blog that displays posts and comments. Users can log in (or register, if they do not already have an account) to post blog entries and make comments on the site. Logged in users have a dashboard that not just allows them to create a new post, but access a list of their previous posts with links to view, edit, or delete those posts. After an hour of inactivity, users are logged out. This application uses Node.js with Express server, saving information to a MySQL database, and is deployed on Heroku.
View the live Tech Blog page with Heroku.
To install and run this project, please follow these steps:
- Make sure you have Node.js and MySQL installed.
- Through the command line, go to the folder you wish this application's folder to be in.
- Do
git clone
of the repository to get the application's files. - Run
npm run schema
to get the database. - To install all of the depenencies this application uses, run
npm install
. - Create a
.env
file containing:DB_NAME=tech_blog_db
, along wtih yourDB_USER
,DB_PASSWORD
, and a secret codeSECRET
. - To start the application, run
npm start
. - Open localhost:3001 to see the local webpage.
If you would like to contribute to this project, you can do so by:
- Forking the project. (Learn how to fork.)
- Creating a new feature branch, committing the changes, and pushing the branch.
- Opening a Pull Request.
You can also check the list of Issues.
Read the Contributor Covenant Code of Conduct.
To easily test the application with a few users, posts, and comments, you can seed the database by running the following command:
npm run seed
Tech Blog was created by JColeCodes. For inquiries regarding the project, please email the creator at [email protected].