cqr / PRX.org-Backend

Rails App for PRX (under development)

Home Page:http://www.prx.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PRX.org Backend

Build Status Code Climate Coverage Status Dependency Status

Install

These instructions are written assuming Mac OS X install.

Basics

# Homebrew - http://brew.sh/
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

# Git - http://git-scm.com/
brew install git

# Pow to serve the app - http://pow.cx/
curl get.pow.cx | sh

Ruby & Related Projects

brew update

# rbenv and ruby-build - https://github.com/sstephenson/rbenv
brew install rbenv ruby-build
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source ~/.bash_profile

# ruby (.ruby-version default)
rbenv install

# bundler gem - http://bundler.io/
gem install bundler powder

Rails Project

Consider forking the repo if you plan to make changes, otherwise you can clone it:

# ssh repo syntax (or https `git clone https://github.com/PRX/PRX.org-Backend.git prx-backend`)
git clone git@github.com:PRX/PRX.org-Backend.git prx-backend
cd prx-backend

# bundle to install gems dependencies
bundle install

# copy the config
cp config/application.yml.example config/application.yml

# create test database
mysqladmin create prx_test

# run tests
bundle exec rake

# pow set-up
powder link

# see the development status page
open http://prx-backend.dev

# see the api root json doc
open http://prx-backend.dev/api

About

Rails App for PRX (under development)

http://www.prx.org

License:GNU Affero General Public License v3.0


Languages

Language:Ruby 98.7%Language:JavaScript 0.7%Language:CSS 0.6%