Code Monkey home page Code Monkey logo

banking-system's Introduction

Banking System

This is the code for a very simple banking system. The system contains only one code file (app.py) with an command line interface to donate money from one account to another or withdraw money from one account. We also have some predefined bank accounts, that can interact with the system and apply these two use cases.

Your task

The system only has one main function. However, in future we plan to add new use cases (e.g., loan), change the data storage (e.g., from sqlite to postgresql) or add another interface for the system (e.g., web api)

We want to be independent from any technology and third-party frameworks. In the end you should have a onion architecture-like structure with packages for infrastructure, application and domain. Keep in mind that the domain model and application should not have any external dependencies and all dependencies should be directed inwards.

onion architecture

Prerequisites

  1. Install Python (>= 3.9)
  2. Create a virtual environment
    python -m venv .venv
  3. Activate the virtual environment
    source .venv/bin/activate (Linux) or .venv/Scripts/activate (Windows)
  4. Install all requirements
    pip install -r requirements.txt

Run the system

You can run the system by executing python app.py <arguments>.

To get all available commands you can execute python app.py --help.

banking-system's People

Contributors

numericalmax avatar ptrbld avatar bludau-peter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.