npm.io
1.1.2 • Published 10 years ago

blog_webapp

Licence
ISC
Version
1.1.2
Deps
4
Vulns
2
Weekly
0

#blog_webapp

##installation To install blog_webapp, call

npm install blog_webapp@latest

on the command line. This will install the module to the node_modules folder in your pwd.

##seeding the database Before you make your own posts, seed the database with some sample blog posts:

node node_modules/blog_webapp/seed.js

(Make sure the database is seeded before you run your server. Don't worry, editing and deleting posts is easy.)

##write your blog_webapp server

//   ./server.js
var Blogger = require('blog_webapp');
blogger = new Blogger();
blogger.init('8080'); //of course, you can use any port number you like.

##run the server

node server.js

Your homepage is (domainname)/post/

###You're ready to go.

##Syntax highlighting

to include highlighted code in your posts, wrap your code in this markup:

|~ lang=(programming language) ~|~ (code) ~|~ end ~|