In order to build the C++ ATM application, you will need to do the following:
Open Visual Studio 2008 Command Prompt and navigate to the
CoherentBank\cpp
directory. This will ensure that all environment variables necessary to run Microsoft C++ compiler are properly configured.> build
This should compile and link the application and copy the executable and necessary configuration files into the
dist
subdirectory.Navigate to the
dist
subdirectory.Run the application with no arguments:
> atm
This should print out usage instructions:
Usage: atm <deposit|withdraw> <account number> <amount> <currency code>
Run the application one or more times against one of the accounts you have access to (you can see them in the web application when logged in). For example, if you want to withdraw $200 from the account with the ID 10 run the following:
> atm withdraw 10 200 USD
You should see a response similar to the following:
Transaction Details ---------------------------------- Type: WITHDRAWAL Description: ATM withdrawal ($ 200.00 @ 0.6630) Amount: 132.6 EUR Balance: 20745.4 EUR
Do several withdrawals and deposits against the same account and then view the account transactions in the web application.