Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.56 KB

File metadata and controls

53 lines (38 loc) · 1.56 KB

Job Board

A Ruby on Rails job post aggregator for the code4lib community.

Build Status Code Climate Coverage Status

Installing

To install the Job Board, you need the following:

$ bin/setup
$ rake db:migrate
$ rails server

The application should be available at http://127.0.0.1:3000.

Loading seeds

Fetch the dump.tar.gz file from https://archive.org/details/jobs.code4lib.org and extract it into ./tmp/dump.

$ rake db:seed

Tests

To run the tests:

$ rake
# or
$ rspec

Docker compose

  1. $ docker compose build
  2. $ docker compose up
  3. $ docker compose exec -u root app bin/setup
  4. $ docker compose exec -u root app rake db:migrate
  5. $ docker compose exec -u root app rake db:seed

At this point you may need to restart the whole thing or just run something like $ docker compose exec -u root app bundle exec rails restart.

To see the running app go to localhost:8081 in the host machine.

After that, either pull up the shell using docker desktop or something like: $ docker compose exec -u root app bash