No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
actions
app
bin
config
db
docker
hooks
lib
log
ona_forms
public
spec
vendor/assets
.dockerignore
.gitignore
.rspec
.ruby-version
.travis.yml
Capfile
Dockerfile
Dockerfile-dev
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
config.ru
dev-setup.sh
docker-compose.yml

README.md

Themis

Creative Commons License

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.

Run:

$ ./dev-setup.sh
$ docker-compose up

Open http://localhost:3000.

First time

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.

Mailing

Open http://localhost:3080 to see the emails sent from the app during development.

Running specs

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

Restore backups

$ 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 "USER=email@domain.com 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.