https://github.com/shivankk26/personal-blog-website
In this Project, I've built a WebApp namely Personal Blog Website using which you can publish your own blogs. This WebApp is extremely beneficial for journaling or documenting some kind of activity. So, just use it and have fun!!!
https://github.com/shivankk26/personal-blog-website
backend ejs expressjs javascript lodash mongodb mongoose nodejs
Last synced: 3 months ago
JSON representation
In this Project, I've built a WebApp namely Personal Blog Website using which you can publish your own blogs. This WebApp is extremely beneficial for journaling or documenting some kind of activity. So, just use it and have fun!!!
- Host: GitHub
- URL: https://github.com/shivankk26/personal-blog-website
- Owner: ShivankK26
- Created: 2023-04-30T10:18:22.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-30T10:56:58.000Z (about 2 years ago)
- Last Synced: 2025-01-09T06:22:27.670Z (4 months ago)
- Topics: backend, ejs, expressjs, javascript, lodash, mongodb, mongoose, nodejs
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About The Project
In this Project, I've built a WebApp namely Personal Blog Website using which you can publish your own blogs. This WebApp is extremely beneficial for journaling or documenting some kind of activity. So, just use it and have fun!!!
Use the `README.md` to get started.
# Built With
The Tech Stacks use are:
# Getting Started
To get started, create a file called app.js and import all the required modules in it. After that create a folder called views and place the about.ejs, compose.ejs, contact.ejs, home.ejs, and post.ejs files in it. Also, inside views folder create a sub-folder called partials in which include header.ejs and footer.ejs filed. After that, create another folder called public in which add another folder called css in which you'll need to add a file called styles.css.
* modules
```sh
const express = require("express");
const bodyParser = require("body-parser");
const ejs = require("ejs");
const _ = require("lodash");
const mongoose = require("mongoose");
```* ejs connectivity
```sh
app.set("view engine","ejs")
```
* Using Body Parser```sh
app.use(bodyParser.urlencoded({extended: true}));
```## Prerequisites
To begin with our Project, we'll need to install some npm packages like express, mongoose, body-parser, ejs, and lodash using the command given below.
* npm
```sh
npm install express mongoose ejs lodash body-parser
```
* To ease the process of development, we'll install nodemon (Make sure you already have nodemon installed in your system, if not then [visit here](https://nodemon.io/)).```sh
npm i nodemon
```# Contact
Your Name - Shivank Kapur - [email protected]
Project Link: