Events and Places for Everyone to go. Also known as tourism spots.
CoffeeScript JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Build Status

#ok, letsgo

A mobile web app to list and add cool events and interesting locations around Oklahoma.


##Database Installation Instructions (OSX 10.8)

  1. Install Xcode and Command Line Tools

    You can get Xcode from the Mac App Store. You’ll need at least version 4.4 of Xcode for it to work with OS X Mountain Lion. After the installation, open up Xcode in your /Applications folder. You’d want to go to Xcode -> Preferences -> Downloads tab then install the “Command Line Tools.” After you’re done, quit Xcode and fire up Terminal.

  2. Install Ruby 1.9.3 using RVM

    \curl -L | bash -s stable --	ruby
  3. Add RVM and Mongo to your profile

    vim ~/.profile

    add the line

    source ~/.rvm/scripts/rvm
    export OKLETSGO_MONGO='localhost/okletsgo'

    save the file and restart terminal

  4. Install Homebrew

    ruby -e "$(curl -fsSkL"
    brew doctor
  5. Install Mongodb

    brew install mongodb
  6. Add the sample data into the database

    This will import the file okletsgo.csv (in the current folder) to the database. This uses a few features that requires Ruby 1.9.x

    ruby -rcsv -rjson -e "places = []; CSV.foreach('sample_data/okletsgo.csv', {headers: true}) { |row| r=row.to_hash; r['tags'] = r['tags'].split(/\s*,\s*/); r['location'] = [r.delete('lon').to_f, r.delete('lat').to_f]; r['published'] = true; places << r }; puts places.to_json" | mongoimport -d okletsgo -c places --jsonArray

    You should see something like…

    connected to:

    imported n objects

  7. Start Mongodb

    This will start mongo, but it won't launch each time you restart your machine, you will want to run this step each time you start the app.


##Starting the app

  1. Install Node.js with NVM
  2. type npm start or coffee