Skip to content

Events and Places for Everyone to go. Also known as tourism spots.

Notifications You must be signed in to change notification settings

shanecowherd/okletsgo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 https://get.rvm.io | 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 raw.github.com/mxcl/homebrew/go)"
    
    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: 127.0.0.1

    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.

    mongod
    

##Starting the app

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

About

Events and Places for Everyone to go. Also known as tourism spots.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CoffeeScript 75.5%
  • JavaScript 24.5%