Skip to content

hksk/ACRylic

Repository files navigation

README

ACRA Backend in RoR

$ bundle install

$ bundle exec rake db:migrate

create user

$ bundle exec rake users:manipulate email=[email protected] password=123456

$ bundle exec rails s

simulate request

$ bash curl-example.sh

.env example:

BACKEND_RAILS_DOMAIN=localhost:3000
RAILS_RELATIVE_URL_ROOT=/acrylic
SLACK_TOKEN=xxxxxx
SMTP_URI=smtp://mail.example.com:25
REGISTER_TOKEN=abc123
[email protected]
[email protected]
EMAIL_SUBJECT="Crash Received!"
  • remove SMTP_URI to disable the email send
  • REGISTER_TOKEN is a parameter in the request to allow the insertion /add?register_token=abc123

TODO:

  • Slack Integration

DOCKER:

  • change port 3000 in docker-compose.yml if you need bind another port

$ docker-compose up -d

$ docker-compose exec acrylic bundle exec rake users:manipulate email=[email protected] password=123456

PROD

add envs (and change the values):

RAILS_MASTER_KEY="ABC" 
SECRET_KEY_BASE="DEF" 
MY_SECRET_TOKEN="123" 
SECRET_TOKEN="456" 
RAILS_SERVE_STATIC_FILES=true 
RAILS_LOG_TO_STDOUT=true
RAILS_ENV=production

MYSQL_USER=
MYSQL_PASSWORD=
MYSQL_HOST=
MYSQL_DBNAME=

Powered by Geosatelital

Team:

  • Erik Beltran (@hksk)
  • Luis Souto
  • Marco Tantalean
  • Vanessa Bermejo
  • Jose Saravia
  • Ismael Carrera