An interactive travel-log. Blog left, map right - both moving in sync. Easy to create, easy to maintain.
Basic Layout - Blog left, map right.
Animation of the map while scrolling
- install node.js from http://nodejs.org/
- install CouchDB from http://couchdb.apache.org/
- install redis http://redis.io
- install CoffeeScript
npm install -g coffee-script git clonethis repo andcdinto it- run
(sudo) npm install - copy
server/config.sample.coffeetoserver/config.coffeeand fill in your credentials
- create two databases
atw_usersandatw_data - in
atw_users, create a new document: { "_id": "_design/users", "language": "javascript", "views": { "usersByName": { "map": "function(doc) {\n emit(doc.username, doc);\n}" }, "usersByServiceId": { "map": "function(doc) {\n if(doc.service_userid)\n emit(doc.service_userid, doc);\n}" } } } - in
atw_data, create a new document: { "_id": "_design/trips", "language": "javascript", "views": { "byUserIdAndSlug": { "map": "function(doc) {\n if(doc.type == 'trip' && doc.user_id)\n emit([doc.user_id, doc.slug], doc);\n}" } } } - there might be an alert, that a document wasn't found...ignore it ;)
- make sure that CouchDB and redis are running
- run
coffee server.coffee


