MOTB, the Ming's Own Tiny Blog.
A website designed to be my personal blog and a demo.
- Server: MongoDB + Compojure + Ring
- Front end: Backbone.js + Require.js + jQuery + Bootstrap + Sass
- Plugin: Pagedown.js
- Download mongodb from here
- Use SASS to compile sass files at
resources/sass
and set output toresources/public/css
- Run it:
mongod
- Set up a new db called
motb
by using the consolemongo
.
lein ring server 8080
- Optimizing:
- Download r.js
- Change pwd to
resouces/public
. - Run it using the config file:
resources/pubic/build.js
r.js -o build.js
- Replace the public file by public-build.
- Generate war file
lein ring uberwar
- Put it to any server that support .war file such as Tomcat.
Copyright © 2013 Ming
Distributed under the Eclipse Public License, the same as Clojure.