Giter Club home page Giter Club logo

pickem's Introduction

README

Join the chat at https://gitter.im/elmerwu/pickem

###Getting Started in a OSX environment

Clone the repo. Make sure you install Node and bower before running bundle install. Run the server with

rails s

Visit this url to see the app on your local machine:

localhost:3000

Install ruby version 2.2.3

rvm install ruby-2.2.3

Create project gemset

rvm use 2.2.3@pickem --create

To list the current project gemset

rvm gemset list

##Installing PostgresSQL Using Brew (Mac os)

brew install postgresql

Once this command is finished run

# To have launchd start postgresql at login:
ln -sfv /usr/local/opt/postgresql/*plist ~/Library/LaunchAgents

# Then to load postgresql now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist

By default the postgresql user is your current OS X username with no password.

psql -d postgres -U {username}

PostresSQL Notes: To start postgres manually

pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start

To stop manually

pg_ctl -D /usr/local/var/postgres stop -s -m fast

Check status of postgres

pg_ctl -D /usr/local/var/postgres status

For AngularJS front end

Install NodeJS first

brew install node

then install bower

npm install -g bower

You need to have both NodeJS and bower installed in order to install the 'bower-rails' gem

After bower is installed you can see the rake tasks you now have

rake -T bower

Bower uses the Bowerfile to manage dependencies, similar to the Gemfile in the root directory of the app.

Install Angular:

rake bower:install

The bower dependencies are in this folder:

vendor/assets/bower_components

Rspec

To run all specs:

bundle exec rspec

To specify specific folders:

bundle exec rspec <__PATH__>/<FILE_NAME>
ie.. bundle exec rspec spec/models/user_spec.rb

To run a specific spec in a file:

bundle exec rspec <__PATH__>/<__FILE_NAME__>:<__ROW__>

ie.. bundle exec rspec spec/models/user_spec.rb:18

pickem's People

Contributors

joeyboolean avatar elmerwu avatar gitter-badger avatar

Stargazers

elmer avatar  avatar

Watchers

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