Our main goal is to build a wepapp to pratice to connect to Currency Data Feed API, Deployment Heroku, Continuous Integration and TDD.
- 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.
It'll be a webapp where we can simulate currency exchange.
We are an open source project.
So, WELCOME!
At first, you need to setup some configurations after clonning the repo to your local machine.
On the repo we have a file database-sample.yml on config dir.
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
- Fix tests home_specs