Skip to content

Commit 48bab9e

Browse files
committed
add read me
1 parent d7be225 commit 48bab9e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

readme.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Blog Website Using Express, EJS and Lodash
2+
3+
## Table of contents
4+
- [Blog Website Using Express, EJS and Lodash](#blog-website-using-express-ejs-and-lodash)
5+
- [Table of contents](#table-of-contents)
6+
- [General info](#general-info)
7+
- [Requirements](#requirements)
8+
- [Technologies Used](#technologies-used)
9+
- [Set Up](#set-up)
10+
11+
## General info
12+
13+
This project uses partials to build a cohesive whole website. It has a home page, about us page , contact us page. Home page stores the new blog posts in chronological order but the actual blog content will be truncated to only 100 characters. When you click on read more, it will take you to an individual page of each of your blog posts and you can read them independently on a single page.
14+
15+
There's also a hidden page(`localhost:3000/compose`) which will allow you to compose your diary. Then you can see the new post gets put right on the home page and a brand new page has been created in the URL `localhost:3000/posts/another-post`(example for another post titled blog post) just for that new post. Hit enter and we get taken to the page where that blog posts exists.
16+
17+
By using EJS we're able to create dynamically single pages, new web pages for each and every blog post that we're making.
18+
19+
## Requirements
20+
21+
You need node and npm installed in your environment. `npm install` to install dependencies.
22+
23+
## Technologies Used
24+
25+
Epress, Lodash, and ejs templating.
26+
27+
## Set Up
28+
29+
```sh
30+
npm install
31+
nodeomon app.js
32+
```
33+
34+
- Website works in `localhost:3000`
35+
- To compose a new blog post go to `localhost:3000/compose`. It redirects to home page.
36+
- To see the new blog post `localhost:3000/posts/yourNewBlogPostTitle` You can type the blog post name with lowercase or uppercase, it doesn't affect to fetch the website.

0 commit comments

Comments
 (0)