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.
Install docker and docker-compose.
Run:
$ ./dev-setup.sh
$ docker-compose up
Open http://localhost:3000.
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.
Open 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 "[email protected] 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.
Content type
Image
Digest
Size
337.9 MB
Last updated
over 7 years ago
docker pull bcardiff/themis