https://github.com/mjacobus/my-bible-notes
https://github.com/mjacobus/my-bible-notes
bible bible-notes bible-study jehovahs-witnesses jw
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mjacobus/my-bible-notes
- Owner: mjacobus
- Created: 2021-08-21T21:18:47.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T01:41:14.000Z (about 3 years ago)
- Last Synced: 2024-04-09T22:57:04.912Z (almost 2 years ago)
- Topics: bible, bible-notes, bible-study, jehovahs-witnesses, jw
- Language: Ruby
- Homepage:
- Size: 409 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# My Bible Notes
Tag scriptures, create a timeline. Share them if you like.
- [Site](https://mybiblenotes.herokuapp.com/#)
[](https://github.com/mjacobus/my-bible-notes/actions/workflows/rails-unit-tests.yml?query=branch%3Amaster)
[](https://github.com/mjacobus/my-bible-notes/actions/workflows/rubocop.yml?query=branch%3Amaster)
[](https://codeclimate.com/github/mjacobus/my-bible-notes/maintainability)
[](https://coveralls.io/github/mjacobus/my-bible-notes?branch=master)
### How to run/install the app:
After installing the ruby version displayed in [this file](https://github.com/mjacobus/my-bible-notes/blob/master/.ruby-version).
Also install `nodejs` and `yarn`.
```bash
# 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 +C
```
### Running tests
```bash
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
```bash
bundle exec rubocop -a
```
### Installing OS dependencies
- If you are on [Ubuntu 18.04 LTS](https://github.com/mjacobus/installers/tree/master/ubuntu/18.04)
- The above step is not installing ruby itself. However you can try to use [asdf for ruby](https://github.com/asdf-vm/asdf-ruby).
- Same for nodejs and yarn. Try [asdf for nodejs](https://github.com/asdf-vm/asdf-nodejs) and after installing run `npm install -g yarn`.
## Heroku
- [DB Backups](https://data.heroku.com/datastores/6532561c-a42c-4970-83a8-4be84c0caf9d#durability)
### Restoring a backup
Download a backup from the above link and then:
```bash
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
```