A super-basic blogging platform based on xunawu's clojure webapp tutorial. The tutorial left out a few crucial facets of the application (updating a post, for example) and I tried to add some features like post navigation and commenting. I started this project to learn the basics of clojure / compojure web app development. It is a blast to work on.
####Lessons Learned Getting started with Clojure web applications is about a thousand times faster than Java, even (especially?) when using a Java framework.
####TO-DOs
add ability for admins to delete or moderate comments- add ability to like comments and posts
anonymously- with identity
- get username out of basc authentication header for adding posts and maybe comments
- normalize comments table and add appropriate joins
- add links from comments on a user-summary page back to the posts they refer to
- clean & DRY up views.clj
- add footer
finish comments (add comment page, see all comments by user, etc)- favicon!
You will need
- Leiningen 1.7.0
- Compojure 1.1.8
- java.jdbc 0.3.5
- mysql-connector-java 5.1.25
- ring-basic-authentication 1.0.5 (just until I get around to putting friend on here!)
To start a web server for the application, run lein ring server-headless
from the blog-zone directory then navigate to localhost:3000
in your
favorite browser or whichever port ring tells you that it has
started on (you can change this in project.clj)