Themis by Brian J. Cardiff is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Based on a work at https://github.com/bcardiff/themis.
Docker development environment
Install docker and docker-compose.
$ ./dev-setup.sh $ docker-compose up
Register a user from the login form in the web.
$ docker-compose exec app rails console > u = User.first > u.admin = true > u.save! > exit
Reload the web page.
http://localhost:3080 to see the emails sent from the app during development.
To run specs
$ docker-compose exec app rspec.
A selenium can be accessed via vnc at
localhost:5901 (password: secret).
When restoring a backup, you can reset user password doing
$ docker-compose exec app rake db:drop db:create $ docker-compose exec db bash # mysql -u root themis_development < ./path/to/backup.sql $ docker-compose exec app /bin/bash -c "USERfirstname.lastname@example.org PASSWORD=newpassword rake app:reset_pwd"
Note: If the
backup.sql is stored in this project folder, then
/src/backup.sql is the path to use.