3 ms·
Does anybody know if there's a blog suite where blog entries/comments/etc are stored on the filesystem as dumb JSON files, and rendered using a client-side java
by ninkendo 12y ago
Does anybody know if there's a blog suite where blog entries/comments/etc are stored on the filesystem as dumb JSON files, and rendered using a client-side javascript framework?
From the server's point of view, it could be all static (both the compressed .js app and the json files are just files on the filesystem that can be cached, no database needed), but you can still update the site dynamically through an API endpoint. The API endpoint can trigger server-side code that writes new JSON files out appropriately, but for all non-comment-posting, non-blog-writing traffic, it's all just plain files.
Of course, a decent caching layer at any point can make any dynamic server behave like this, but it'd be cool to have your entire blog work without any code running other than a simple nginx/apache config that serves out static files (and reverse proxies to you app for any POST requests).
Actually the more I think about this, the more I think this could be a fun weekend project.
- baby 12y agoDaring Fireball is kind of like this, every post can be accessed through a markdown file. The real posts are just generated thanks to those .md files. http://daringfireball.net/ http://daringfireball.net/