# Welcome to Blog-In

`It is a Database Management Project where user can create and share Blogs`

## Tech stack used :

`DBMS : MySql`

`Backend : Node.js and Express.js framework `

`Frontend : HTML, CSS, js, Handlebars (template)`


## Project Structure:

Controller folder -- Database configuration 

Model folder -- Tables creation 

Public -- Css, images 

Router -- Routes 

views -- all handlebars files (frontend)

Material -- for ppt (describing project UI, ER diagram )

## How to Install

Follow the steps to Install the project 

`Clone the project in your pc by using the command :`

**git clone https://github.com/deepeekachudasama027/Blog-In.git**

**Delete package.json file and package lock json file**

`Run the command given below to install node-modules needed`

**npm i express express-session express-handlebars cors dotenv hbs mysql2 path sweetalert2 nodemon**
 
`then to get package.json file in your project run:`

**npm init**

`in package.json file add the command given below in "scripts" key`

**"start": "nodemon server.js"**

`server.js is the main js file to run the project`

`installation completed`

`To run the project, run the command :`

**nodemon start**

`in browser search for`

**localhost:3000**

`You can change the port in configure.env file`


