Coder Social home page Coder Social logo

ride2go's Introduction

ruby 
====
i am using sass for the css
 * install rvm (ruby version manager) https://rvm.beginrescueend.com/
 * run "bundle install" to get haml and sass
 * start "sass --watch sass/:public/css" to convert sass files instant

node
====
follow https://github.com/joyent/node/wiki/Installation to install node

redis
=====
get redis from http://redis.io/download

$ wget http://redis.googlecode.com/files/redis-2.2.12.tar.gz
$ tar xzf redis-2.2.12.tar.gz
$ cd redis-2.2.12
$ make

and start it:

$ src/redis-server

node package manager
====================
 $ curl http://npmjs.org/install.sh | sh
  
thanks to package.json you can simply run 
 $ npm install

it will install
 * jade # template engine
 * socket.io # async channel handling
 * coffee # js on steroids
 * express # rails for node.js

to have the executables installed from npm in you PATH you should add node_modules/.bin 

coffee setup
============
to compile the client javascript files run
 $ coffee -w -o public/js -c client/*.coffee 
 $ find . -not -path "./node_modules*" -not -path "./test*" \
  -not -path "./client*" -name "*coffee" |xargs coffee -w -c

run tests
=========
 $ expresso test/*
 
run specs
=========
 $ ./specs.sh

PATHS
=====
You should set your NODE_PATH to the node directory and to the "lib"

export NODE_PATH=`pwd`/node_modules:`pwd`/lib:/home/user/software/:$NODE_PATH
export PATH=`pwd`/node_modules/.bin:/home/user/software/bin:$PATH

preparation
===========

alternative names
-----------------

you need a redis server with alternative names.
you need alternativenames.txt and admincodes from geonames.org into /tmp
http://download.geonames.org/export/dump/alternateNames.zip
http://download.geonames.org/export/dump/admin1CodesASCII.txt

and then start the redis server with "redis/alt.conf"
it will write a dump to "dumps" of the db after a while

geonames
--------
run the import by:
node.io lib/importers/geonames.coffee
check consitency with 
jasmine-node --coffee --verbose -m geoname_import_ spec


roadmap
-------
we using pivotaltracker at https://www.pivotaltracker.com/projects/130935 for our planing.
use [fixes #storyid] in commit messages

ride2go's People

Contributors

yncyrydybyl avatar johnrandom avatar boggle avatar

Stargazers

 avatar flo detig avatar

Watchers

flo detig avatar James Cloos 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.