Abreviador de cuentas bancarias
- Que una persona nunca tenga que volver a escribir los datos de una cuenta bancaria
- Que cualquier persona pueda usar datos ya ingresados para hacer una transferencia
- Que otros servicios puedan consumir los datos de manera automatizada
- Se registra una cuenta bancaria (
nombre de la persona
,rut de la persona
,banco
,número de cuenta
,tipo de cuenta?
) - Se almacenan los datos y se entrega un link corto para referencia (ie https://cta.ly/aZks87V). Este link identifica de manera unívoca la información ingresada
- Si el usuario quiere un link personalizado con su correo tiene que verificarlo (ie https://cta.ly/camilo.ignacio@gmail.com)
- Se muestra una pantalla linda y amigable con la información para que se copie y pegue (idealmente con botones como los de copiar repo de github)
- Retorna un objeto JSON con los datos
- ¿Qué algoritmo utilizar para transformar esos datos a un string lo más breve posible?
- Hacerlo?
The emails can be send through the gem aws-sdk-rails
using the aws_sdk
delivery method.
All the action_mailer
configuration can be found at config/mailer.rb
, which is loaded only on production environments.
All emails should be sent using background jobs, by default we install sidekiq
for that purpuse.
If you add the EMAIL_RECIPIENTS=
environmental variable, the emails will be intercepted and redirected to the email in the variable.
For managing tasks in the background, this project uses Sidekiq
This project is pre-configured to be (easily) deployed to Heroku servers, but needs you to have the Potassium binary installed. If you don't, then run:
$ gem install potassium
Then, make sure you are logged in to the Heroku account where you want to create the app and run
$ potassium install heroku --force
this will create the app on heroku, create a pipeline and link the app to the pipeline.
You'll still have to manually log in to the heroku dahsboard, go to the new pipeline and 'configure automatic deploys' using Github You can run the following command to open the dashboard in the pipeline page
$ heroku pipelines:open
Remember to connect each stage to the corresponding branch:
- Staging -> Master
- Production -> Production
That's it. You should already have a running app and each time you push to the corresponding branch, the system will (hopefully) update accordingly.