zerotohero-dev / o2js.com

New Blog of o2js.com to be written in Markdown and Node.JS
Other
2 stars 0 forks source link

decrease scotch dependency. #17

Open v0lkan opened 11 years ago

v0lkan commented 11 years ago

Alchohol is not good.

Jokes, aside scotch is a great framework.

And I'm kinda piggybacking on a bunch of scotch methods just to quickly create content, and then never run the scotch server at all.

So ideally, I should copy part of scotch CLI to

  1. read a static markdown file,
  2. update mongodb by updating the blog related to that markdown
  3. publish everything.
  4. udpate markdowns.

so node . --add <title> <markdown> will behave identical to creating a new blog post.

This way instead of running a scotch server, I can just create a plain text file; and when I'm done with that plain text file, I can publish it.

I can even remove mongodb dependency, however I have to replicate stuff in the mongodb just in case I'd like to run full text searches on the content.

v0lkan commented 11 years ago

or maybe use grunt for that.