Skip to content

So-Emily/MVC-Tech-Blog

Repository files navigation

MVC Tech Blog

Description

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.

tech-blog-img

Table of Contents

Installation

  1. Clone the repository:
    git clone https://github.com/your-username/mvc-tech-blog.git
  2. Navigate to the project directory:
    cd mvc-tech-blog
  3. Install the dependencies:
    npm install
  4. 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

Usage

  1. Start the server:
    npm start
  2. Open your browser and navigate to http://localhost:3000.

Features

  • User authentication (signup, login, logout)
  • Create, edit, and delete blog posts
  • Comment on posts
  • Responsive design

Technologies Used

  • Node.js
  • Express.js
  • Handlebars.js
  • Sequelize
  • MySQL
  • bcrypt
  • dotenv
  • Express-Session
  • Connect-Session-Sequelize

License

This project is licensed under the ISC License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please fork the repository and create a pull request with your changes.

Questions

If you have any questions, feel free to reach out to me at So-Emily on GitHub.

About

UCB Challenge 14 - MVC Tech Blog Deployed on Render

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published