/exchange

App de conversão de moedas. Ex.: Converter 50 reais em dólares

Primary LanguageRuby

Codeship Status for FabianoVilela/exchange

README

An APP about Currency exchange

Our main goal is to build a wepapp to pratice to connect to Currency Data Feed API, Deployment Heroku, Continuous Integration and TDD.

Features

  • Selection of currencies from a dropdown
  • Input the amount in the desired currency, obtaining the immediately amount in the other selected currency.
  • Swap currencies convertion between each other.

Visit the app in Heroku

It'll be a webapp where we can simulate currency exchange.

Sample image

We are an open source project.

So, WELCOME!

Our technologies

First setup for running

At first, you need to setup some configurations after clonning the repo to your local machine.

Create your own database.yml

On the repo we have a file database-sample.yml on config dir.

Setup in your machine

As we use docker, we have a docker-compose.yml for it.

If you want to use, your first step must be create your database.yml with the following content:

default: &default
 adapter: postgresql
 encoding: unicode
 pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
 host: db
 user: postgres  

development:
 <<: *default
 database: app_development

test:
 <<: *default
 database: app_test

production:
 <<: *default
 database: app_production
 password: <%= ENV['APP_DATABASE_PASSWORD'] %>

After creating this file, run the following commands:

1. docker-compose build
2. docker-compose run --rm app bundle install
3. docker-compose run --rm app bundle exec rails db:create
4. docker-compose run --rm app bundle exec rails db:migrate
5. docker-compose up

Next steps

  • Fix tests home_specs