Skip to content

Performs the conversion of an amount X of one currency (for example BRL) into a corresponding amount of another (for example EUR).

Notifications You must be signed in to change notification settings

tiagoleal/coin_conversion

Repository files navigation

Coin Convertion

Easily convert your currencies to any currency in the World!

Current Version Codeship Status Ruby Version

Performs the conversion of an amount X of one currency (for example BRL) into a corresponding amount of another (for example EUR).

Screenshot

Coin Convertion

Stack the Project

  • Yarn
  • Rest-client
  • Postgresql
  • Codeship
  • Rspec
  • PWA
  • Heroku

Features

  • Convert to Bitcoin: Realize the conversion of the selected coin for bitcoin.
  • Mobile App: The app has support a Progressive Web App(PWA).

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You must have installed on your machine:

  • Docker
  • Docker Compose

Installing

First step is to install the docker service:

#Linux: ubuntu,Mint
$ sudo apt-get update
$ sudo apt-get install docker-ce
$ sudo apt install docker-compose

# Fedora(27,28,29)
$ sudo dnf update -y
$ sudo dnf install docker-ce
$ sudo dnf -y install docker-compose

For test if the service was installed with succeed, you can run the command for to check de version of docker:

$ docker --version
#Must be have the docker version: Docker version 18.06.0-ce 
$ docker-compose --version
#Must be have the docker-compose version: docker-compose version 1.22.0

First steps

Follow the instructions to have a project present and able to run it locally. After copying the repository to your machine, go to the project's root site and:

  1. Construct the container
docker-compose build
  1. Create of Database
docker-compose run --rm app bundle exec rails db:create
  1. Up the project
docker-compose up
  1. Without turning off the server, open a new window and run the migrations
docker-compose run --rm app bundle exec rails db:migrate #if necessary populate database

Running the tests

To run the tests, you must run the docker container through the command:

docker-compose run --rm app bundle exec rspec

Authors


Tiago Leal

About

Performs the conversion of an amount X of one currency (for example BRL) into a corresponding amount of another (for example EUR).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages