This is a Rails app to manage my digital books. I may add my paper books as well.
This is a Ruby project. Tell your Ruby version manager to set your local Ruby version to the one specified in the Gemfile
.
For example, if you are using rbenv:
- Install the right Ruby version:
rbenv install < VERSION >
rbenv rehash
- Move to the root directory of this project and type:
rbenv local < VERSION >
ruby -v
You will also need to install the bundler
gem, which will allow you to install the rest of the dependencies listed in the Gemfile
file of this project.
gem install bundler
rbenv rehash
This project uses Sqlite. Be sure you have it installed in your system before installing the gems. If you don't, type:
sudo apt-get install sqlite3 libsqlite3-dev
Then install all the gems:
bundle install
Run any pending migrations:
bundle exec rake db:setup db:migrate RAILS_ENV=development
Once that's done, start up the application:
bundle exec rails server -u webrick
The application should be available at localhost:3000 now.
Run any pending migrations:
bundle exec rake db:setup db:migrate RAILS_ENV=test
Then run the tests:
bundle exec rake
- Ruby
- Rails
- SQLite