Skip to content

mjacobus/my-bible-notes

Repository files navigation

My Bible Notes

Tag scriptures, create a timeline. Share them if you like.

Build Status Rubocop Maintainability Coverage Status

How to run/install the app:

After installing the ruby version displayed in this file. Also install nodejs and yarn.

# first time
gem install bundler
mkdir ~/Projects
cd projects
git clone https://github.com/mjacobus/my-bible-notes.git
cd my-bible-notes
bundle install # after you installed ruby version
cp .env.sample .env

yarn install

# every time you update your project

cd ~/Projects/my-bible-notes
docker-compose up     # start docker. Make sure your local postgress is not running
bundle install
./bin/rake db:create  # create database
./bin/rake db:migrate # create tables
./bin/rake db:seed    # create fake data for the database

./bin/rails server    # to stop the server hit <ctrl>+C

Running tests

RAILS_ENV=test ./bin/rake db:create  # create test database
RAILS_ENV=test ./bin/rake db:migrate # create test tables
./bin/rspec

Fixing files style after changing

bundle exec rubocop -a

Installing OS dependencies

Heroku

Restoring a backup

Download a backup from the above link and then:

pg_restore -U pguser -W --no-owner --no-privileges -h localhost -d my_bible_notes_development -1 tmp/bkp/my_bible_notes-backup-21-01-14