Skip to content

Commit bb2bc35

Browse files
committed
edited readme file
1 parent 2317ebf commit bb2bc35

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
#Description
22

3-
A simple mongoDB, express and Node.js blog made with [this tutorial](http://howtonode.org/express-mongodb)
3+
A simple mongoDB, express and Node.js blog made with [this tutorial](http://howtonode.org/express-mongodb)
4+
5+
##Extras
6+
7+
I added the ability to edit and delete blog posts.
8+
9+
##Instructions
10+
11+
From the command line, type mongod to start a mongoDB instance. In a separate window, while in the /blog directory type node app.js. Navigate to localhost:3000 in a browser.

views/index.jade

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ h1= title
1111
input(name ="_id", type="hidden", value=article._id.toHexString())
1212
input(id="edit", value="edit", type="submit")
1313
a(href="/blog/"+article._id)!= article.title
14-
div.body= article.body
14+
div.body
15+
- for (var i = 0; i <= article.body.length; i++) {
16+
p= article.body[i]
17+
- }
1518
#newpost
1619
a(href="/blog/new")!= 'new post'

0 commit comments

Comments
 (0)