Skip to content
This repository has been archived by the owner on May 22, 2018. It is now read-only.

joaomarceloods/calculator-rails

Repository files navigation

Calculator

CircleCI

CODING TEST NOTE

The coding test suggests using Mongo. I decided to go with SQL because I'm more used to it and would face less "surprises" during the test. That said, I'm certainly open to No-SQL.

I generally prefer to use the same database (usually PostgreSQL) in all environments, but I chose SQLite in development to make the evaluator's job easier when reviewing my project, since it requires zero setup.

  • Development and test: SQLite
  • Production: PostgreSQL

Setup

Install dependencies and create the database with bin/setup.

Run

Just rails server.

Test

Tests cover the Calculation model and logic and the Calculation endpoint. Run rails test.

Deploy

  • Commit to master (or open a pull request)
  • Wait for CI to pass
  • Done (or accept the pull request)

CircleCI: https://circleci.com/gh/jmosouza/calculator-rails

Heroku: https://dashboard.heroku.com/apps/jmosouza-calculator-rails/deploy

Additional info