Skip to content

mrflix/aroundtheworld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Around the World

An interactive travel-log. Blog left, map right - both moving in sync. Easy to create, easy to maintain.

Screenshot of a trip
Basic Layout - Blog left, map right.

Screenshot of the journey-editor

Screenshot of a trip
Animation of the map while scrolling

Setup

  • 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 clone this repo and cd into it
  • run (sudo) npm install
  • copy server/config.sample.coffee to server/config.coffee and fill in your credentials

Database Setup

  • create two databases atw_users and atw_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 ;)

Development

  • make sure that CouchDB and redis are running
  • run coffee server.coffee

About

A travel blog service

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors