linglan2020 / Bank

Got bored, trying to build fake bank

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

:moneybag:

Bank

Making a fake banking system with no clue of how banking systems or the general architecture for online bank services work

Background

Was joking around in the car on a roadtrip a built a ~30 line 'banking system' that was basically just a calculator that did adding and subtracting. So now I am actually trying to make my own fictional bank system.

Usage

IDK... Clone it and make terrible financial decisions with no repercussions?

September 18, 2021. On this fateful day I quit being lazy about learning how to build a makefile and finally did it. Behold, now you can be lazy and just run make and make clean to setup and cleanup this function. Merry christmas.

Navigate to the 'cpp' directory in the cloned directory and run make

make

Then Run to Start the Bank Simulation

./OperateBank

When Finished With the Program: In The 'cpp' directory Execute The Below Line

make clean

Why YAML?

I work closely with yaml in my DevOps Internship and I am trying to get better using it. At the same time I want to write something in C++ so I used the yaml-cpp library to access and modiy the yml file that will hold all the user information.

users:
  identifier:
    stuff : thing
    stuff : thing

To Do

  • Refactor code, especially main.cpp because it's messy
  • Really time to build a GUI for this, but that is so different it may require a whole new projects just with ideas/basic functions and design pulled from here. Still deciding. Think it would be really difficult to add a GUI to this project.
  • Build a loan function to simulate a loan
    • Include Interest Rates (Maybe pull current avg loan interest rates off bank website, or just an select a random interest rate from an array of them)
    • Need to have a pool of money that the bank holds, should be added into yaml database

Bugs

  • error with unsigned int in YAML::

Future Ideas for This Project

  • Build a GUI and in doing so, learn react.js
  • User to user transactions, requires encrypting information as is passes between the two

Libraries

  • yaml-cpp: [https://github.com/jbeder/yaml-cpp]
    • yaml-cpp is honestly a pain and I wish I never used it in the first place but now I'm in too deep so read below on how to use it
      • Clone the repo from the above link to /usr/local/lib/
      • Navigate to /usr/local/lib and run
      mkdir build
      cmake ../yaml-cpp
      • Restart your terminals and pray it works

About

Got bored, trying to build fake bank


Languages

Language:C++ 96.2%Language:Makefile 3.8%