Skip to content

adekbadek/books

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