Simple corneal app to make transfers between accounts and show balance.
- MVC structure
- Sinatra
- Rspec
- Execute
$ cp config/database.yml.example config/database.yml
and config keys to your postgresql database - Run
$ rake db:create
andrake db:migrate
to create and build database - Run
$ shotgun
to start application server
Run $ tux
to interact with your application in console
$ rspec
- 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
At the root of the project do $ ruby tasks/seed.rb