Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

wtfjs.com!

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 node-code-blog
Octocat-spinner-32 posts
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 server.js
README.md
    
    :::       ::::::::::::::::::::::::::::::::::::::::::: 
    :+:       :+:    :+:    :+:           :+:   :+:    :+:
    +:+       +:+    +:+    +:+           +:+   +:+       
    +#+  +:+  +#+    +#+    :#::+::#      +#+   +#++:++#++
    +#+ +#+#+ +#+    +#+    +#+           +#+          +#+
     #+#+# #+#+#     #+#    #+#       #+# #+#   #+#    #+#
      ###   ###      ###    ###        #####     ######## 
      ---------------------------------------------------
      A pure JavaScript code blog. 

share your wtfjs moment

It has never been easier to contribute a wtf to wtfjs.com!

  • fork this repo
  • add your wtf under /posts (format: yyyy-mm-dd-title.md)
  • send a pull request

the code

Currently supported Node: v0.1.96.

I'm working on separating the blog from the code blog. In the meantime to run this code blog open your terminal and...

$ node server.js

Deploy your own code blog to Heroku. It's super simple:

$ git push heroku master

The code is pretty straightforward. Hack away!

wtfjs
|
|-node-code-blog
| |-post.js ..................... post model
| |-node-code-blog.js ........... routes
| |
| '-lib ......................... dependencies ............. until pkg mgmt is stable in NodeJS land
|   |-express ................... web framework ............ http://expressjs.com
|   |-express-clean-config ...... hacked express config .... a code blog mini dsl for config
|   |-prettyfy .................. syntax highlighter ....... http://code.google.com/p/google-code-prettify
|   |-showdown .................. markdown ................. http://attacklab.net/showdown 
|   '-node-code-blog-themes ..... themes ................... user contributed themes node-code-blog
|     '-wtfjs
|       |-public ................ imgs, css and client js  
|       '-views ................. view templates
|
|-posts
| '-2010-05-10-hello-world.md ... a typical post format
|
'-server.js ..................... config, custom routes and app init

http://wtfjs.com was created by @brianleroux. Everything here is under the WTFPL 2.0 license.

Something went wrong with that request. Please try again.