/bank-app

Primary LanguageRuby

Bank App

Simple corneal app to make transfers between accounts and show balance.

Setup application

  • Execute $ cp config/database.yml.example config/database.yml and config keys to your postgresql database
  • Run $ rake db:create and rake db:migrate to create and build database
  • Run $ shotgun to start application server

Console

Run $ tux to interact with your application in console

Tests

$ rspec

Routes

  • Basic authentication (username, password)
  • Route to view account balance GET /api/accounts/:id/balance
  • Route to transfer money to another account POST /api/accounts/:id/transfer/:destination_id

Seed

At the root of the project do $ ruby tasks/seed.rb