Skip to content

adekbadek/books

This branch is 1 commit ahead of, 2 commits behind master.

Folders and files

NameName
Last commit message
Last commit date
Aug 23, 2020
May 8, 2017
Jul 7, 2022
Apr 12, 2020
Aug 23, 2020
Nov 16, 2017
May 8, 2017
May 8, 2017
Nov 16, 2017
Apr 12, 2020
May 8, 2017
May 8, 2017
Aug 23, 2020
Mar 6, 2020
Apr 11, 2020
Nov 16, 2017
Aug 23, 2020
Apr 14, 2020
Apr 14, 2020
Apr 11, 2020
May 8, 2017
May 8, 2017
Nov 17, 2017
Aug 23, 2020
Aug 23, 2020
Apr 12, 2020
Nov 17, 2017
Apr 12, 2020

Repository files navigation

Books

js-standard-style

Book journal with spaced repetitions.

printscreen

requirements

  • node
  • ruby
  • yarn for managing JS dependencies

installing

bundle
yarn

developing

first time:

rails db:migrate RAILS_ENV=development
rails db:seed

then:

npm start

This project uses commitizen, commit with npm run commit

testing

npm test

running on production

first, build the necessary images: docker-compose build

to launch on production, run docker-compose up -d, and then:

start from scratch restore backup
bash ./scripts/migrate.sh bash ./scripts/restore.sh

to backup the DB (while the container is running), run:

bash ./scripts/backup.sh