This Rails application provides a way to share and collect free programming books.
This application uses Postgres, so you will need it installed on your machine. If on Linux, use your package manager.
On OS X, if you have Homebrew, run brew install postgresql
.
Once you have Postgres installed, edit config/database.yml
-- or set up Postgres to have a database called
freeshelf_development
for your current user.
Next, install all required gems:
bundle install
Finally, set up the database:
rake db:create db:migrate db:seed
After that, you can run rails server
to start the server or rails console
for a REPL.
You must have PhantomJS installed to run the tests. On OS X with Homebrew, run:
brew install phantomjs
If you are new to using git and GitHub, follow these directions:
- Fork the project.
- Clone your copy.
- Add another remote:
git remote add upstream https://github.com/tiy-durham-q3-rails/freeshelf.git
- Make a local branch for your feature.
- Write code.
- Test it out.
- Run
git fetch upstream
and thengit merge upstream/master
in your branch. - Test again.
- Push your branch to your repo.
- Make a pull request!