Skip to content

sumitngupta/castjs

 
 

Repository files navigation

RailsCasts

This is the source code for the RailsCasts site. If you want the source code for the episodes, see the railscasts-episodes project.

Please let me know if you plan to use this app for your site.

IMPORTANT: This source code is out of date with the latest changes at railscasts.com to ensure the security of the payment processing. I hope to open-source the latest additions at some point.

Setup

This is designed to run on Ruby 1.9.2 or higher. If you're using RVM it should automatically switch to 1.9.2 when entering the directory.

To clone the Ruby environment of Heroku's cedar platform:

rvm install 1.9.2-p290 -n cedar
rvm use ruby-1.9.2-p290-cedar@global
rvm rubygems 1.3.7
gem uninstall bundler json rake rdoc
gem install bundler -v 1.1.rc.7 --pre

To create a unique PostgreSQL user for your local database:

createuser castjs --host localhost --username postgres --no-superuser --createdb --no-createrole --login --pwprompt --encrypted

Run script/setup. This will install gems and migrate the database.

You can then start the server with foreman start and run the specs with rake.

You may want to install Sphinx, run the index and start rake commands, and set thinking_sphinx: true in app_config.yml. This isn't required since it will default to a primitive search.

About

railscasts.com in open source goodness!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 91.7%
  • JavaScript 8.3%