There are plenty of templates out there for ruby, this is just another one. More design around what I want in most of my apps.
Runs Rails in docker with postgres DB in another container and redis in another container as well.
Things still to do:
- finish off all omiauth setup (google, facebook, linked-in and twitter)
- move action cable to another container
- setup sidekq in another container
- css
Work in Progress
CSS
This template is using template from Creatived Tim https://www.creative-tim.com/ You require to buy your own license!!
- Product Page: http://www.creative-tim.com/product/now-ui-kit-pro
- Copyright 2017 Creative Tim (http://www.creative-tim.com)
- View License on http://www.creative-tim.com/license
IMAGES
All images should be replace or license should be brought for each. No image license comes with this repo!
All settings are set in config/initializers/devise.rb
or config/initializers/devise-security.rb
.
expire_password_after
= 6 monthspassword_complexity
= 1 digit, 1 lower case, 1 upper case, 1 symbolpassword_archiving_count
= 3deny_old_passwords
= 3email_validation
= true requiresgem "valid_email2"
, email domain must have correct MX records and must not be disposable email domain.expire_after
= user account expires at 365 days since last activityreset_password_within
= 6 hours, Time interval you can reset your password with a reset password keyunlock_in
= 1 hourlast_attempt_warning
= truemaximum_attempts
= 5 max attempts to loginunlock_strategy
= both, either unlock in or send email to unlocktimeout_in
= session timeout 30 minspassword_length
= 6..128remember_for
= remember me for 3 daysconfirm_within
= confirm account within 3 hoursallow_unconfirmed_access_for
= 2 hourssend_email_changed_notification
= truesend_password_change_notification
= true
secret_key_base:
development:
database:
pass: rails
amazon:
client_id:
client_secret:
twitter:
api_key:
api_secret:
google:
client_id:
client_secret:
recaptcha_site_key:
recaptcha_secret_key:
facebook:
facebook_key:
facebook_secret:
smtp:
username: someone@gmail.com
password: anything
redis:
password: yourpassword
test:
database:
pass: rails
amazon:
client_id:
client_secret:
twitter:
api_key:
api_secret:
google:
client_id:
client_secret:
recaptcha_site_key:
recaptcha_secret_key:
facebook:
facebook_key:
facebook_secret:
smtp:
username: someone@gmail.com
password: anything
redis:
password: yourpassword
production:
database:
pass: somethingbetterthenthis!!!
amazon:
client_id:
client_secret:
twitter:
api_key:
api_secret:
google:
client_id:
client_secret:
recaptcha_site_key:
recaptcha_secret_key:
facebook:
facebook_key:
facebook_secret:
smtp:
username: someone@gmail.com
password: anything
redis:
password: yourpassword
docker exec -it base-app_web_1 /bin/bash
docker build -t base_app_web .
Docker build won't run the app startup script!
docker-compose -f docker-compose.yml up
docker login -u docker_reg https://registry.sonictexture.co.uk
docker tag base_app_web:latest registry.sonictexture.co.uk/base_app_web
docker push registry.sonictexture.co.uk/base_app_web
aws ecr get-login --no-include-email --region <region> --profile <environment>
- run outputdocker tag base-app:latest <repo>
docker push <repo>
ecs-cli compose --project-name <name> --file docker-compose.yml service up --cluster <ecs cluster> --target-group-arn <target group ARN> --container-name <container name> --container-port <container port> --aws-profile <profile name> --region <region>
docker volume create --name base-app-postgres
rails credentials:edit