Coder Social home page Coder Social logo

aroundtheworld's Introduction

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

aroundtheworld's People

Contributors

gerritschultz avatar janmonschke avatar mrflix avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.