Run the barong mailer locally
Prerequisites
You need to following deamons running
- RabbitMQ
- Redis
Start Rails console
rails console
Start the mailer
- Generate the barong public key in base64 format
cat config/rsa-key.pub | base64 -w0 (base64 -b0 for MacOS users)
- Configure it in config/mailer.yml Replace changeme with the previous generated string.
keychain:
barong:
algorithm: RS256
value: "changeme"
Generate an event
From the rails console you can generate an event by creating a label on a user:
Label.create!(user_id:1, key: 'phone', value: 'verified')