Git Product home page Git Product logo

mailer's Introduction

Ruby

Mailer

Event based mailing system: support multi-language, secured by cryptographic signatures

Development

Prerequisites:

  • Ruby version: 2.7.5
  • Bundler preinstalled
  • Connection to Barong database
  • Configured RabbitMQ
  1. Install RubyGems dependencies
bundle install
  1. Configure barong and bitzlato databases (default barong_development and bitzlato_development)
export DATABASE_NAME=barong_development
export BITZLATO_DATABASE_NAME=bitzlato_development

  1. Configure RabbitMQ connection url (default - amqp://guest:guest@localhost:567)
export MAILER_EVENT_API_RABBITMQ_URL=amqp://guest:guest@localhost:5672
  1. Start demon
bundle exec ./bin/mailer run
  1. For preview emails use mailcatcher
gem install mailcatcher
mailcatcher

and open http://127.0.0.1:1080/

  1. Running tests
RAILS_ENV=test rake db:drop db:create db:schema:load
bundle exec rake

Environment variables

Variables list
  • PEATIO_JWT_PUBLIC_KEY - peatio jwt public key
  • BARONG_JWT_PUBLIC_KEY - barong jwt public key
  • DATABASE_URL - url for database connection in stage and production environment (example: 'postgresql://127.0.0.1:5432/barong')
  • BITZLATO_DATABASE_URL - url for bitzlato database connection (example: 'postgresql://127.0.0.1:5432/bitzlato')
  • DATABASE_NAME - name of database, used in development and test environment (example: 'barong_development')
  • BUGSNAG_API_KEY - Notifier API key from bugsnag (example: QWE1234567890)
  • MAILER_EVENT_API_RABBITMQ_URL - (example: amqp://guest:guest@localhost:5672)
  • MAILER_DEFAULT_LANGUAGE - default language for emails, default en
  • MAILER_SENDER_EMAIL - FROM field email, default [email protected]
  • MAILER_SENDER_NAME - FROM field name, default Barong
  • MAILER_SMTP_PASSWORD - smtp setting password
  • MAILER_SMTP_PORT - smtp setting port
  • MAILER_SMTP_HOST - smtp setting host
  • MAILER_SMTP_USER - smtp setting user

mailer's People

Contributors

nitr avatar huryv45 avatar radanisk avatar mailer21 avatar dapi avatar unloved avatar veeskelad avatar sixandfo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.