Giter Site home page Giter Site logo

fumbbl_games's Introduction

Usage:

Scripts: Check out the scenarios folder. I've created a sample scenario to show you how you can analyse the data.

Console:

irb

Then as the first command write

require "config/initialize"

Those commands will put you into a console with all the requirements and database connection opened. You can then use Mongoid syntax to retrieve data from the database. (http://mongoid.org/docs/querying/criteria.html). I'll be writing scenarios up that you can use as base documents if you want.

Install instructions

Want to have a play with the code? You'll want to know how to get to the terminal, and be fairly comfortable. This guide uses OSX, cos that's what I use. If you want to run it on a linux machine, you need to install Ruby (preferably via RVM), Mongodb and Git. If you want to run it on a windows machine, the same still applies. You'll need to google how to install all the dependencies, but once they are all there it should work fine. If you've got any problems with anything here, drop me a PM, or open an issue on github, and I'll look at fixing it.

If anyone wants to write install instructions for non apple machines, please send them over and I'll happily add them.

OSX instructions

Install Homebrew : http://mxcl.github.com/homebrew/ The install is simple.

Use Homebrew to install git and mongodb

brew install mongodb

brew install git

Install RVM

Visit http://beginrescueend.com/ and checkout their install script.

Install Ruby 1.9.2

rvm install 1.9.2

Create a folder for the code and clone the repository into it

git clone [email protected]:Hitonagashi/fumbbl_games.git

CD into the directory. RVM should prompt you to examine the RVMRC file (tells it what rubies and gems to use.). It's safe, so type "y" to allow it. If you want to look at it, be my guest, it's the .rvmrc file in the root folder.

Install bundler to allow for management of gems

gem install bundler

Install required gems

bundle install

Import the database from the dump

./mongorestore dump/fumbbl

Now you should be good to go!

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.