The MVC Tech Blog is a web application that allows users to create, edit, and delete blog posts and comment on them. The application follows the Model-View-Controller (MVC) architectural pattern and uses Handlebars.js as the templating engine, Sequelize as the ORM, and Express.js for the server.
- Clone the repository:
git clone https://github.com/your-username/mvc-tech-blog.git
- Navigate to the project directory:
cd mvc-tech-blog
- Install the dependencies:
npm install
- Set up the database:
- Create a
.env
file in the root directory and add your database credentials:DB_NAME='your_database_name' DB_USER='your_database_user' DB_PASSWORD='your_database_password'
- Run the schema file to create the database:
mysql -u your_database_user -p your_database_name < db/schema.sql
- Seed the database:
npm run seed
- Create a
- Start the server:
npm start
- Open your browser and navigate to
http://localhost:3000
.
- User authentication (signup, login, logout)
- Create, edit, and delete blog posts
- Comment on posts
- Responsive design
- Node.js
- Express.js
- Handlebars.js
- Sequelize
- MySQL
- bcrypt
- dotenv
- Express-Session
- Connect-Session-Sequelize
This project is licensed under the ISC License. See the LICENSE
file for details.
Contributions are welcome! Please fork the repository and create a pull request with your changes.
If you have any questions, feel free to reach out to me at So-Emily on GitHub.