Giter VIP home page Giter VIP logo

bank_php's Introduction

About This Project

This project is a web application designed to practice and improve concepts from software development such as Domain-Driven Design (DDD) and Ports and Adapters. It utilizes technologies including PHP, Slim Framework, Doctrine DBAL, Nginx, and Docker.

What is the Business?

This project simulates an online banking application. To keep it simple, each business entity is considered a root aggregate. While we are not implementing value objects, nothing prevents us from adding them in the future. Instead of using CQRS, we focus on use cases, which include:

Use Cases

  1. Customer Registration

    • Endpoint: POST /customer
    • Request Body:
      {
        "name": "Enter your name",
        "phone": "Enter a phone number (no validation)",
        "address": "Enter an address (no validation)"
      }
  2. Account Registration

    • Endpoint: POST /account
    • Request Body:
      {
        "idCustomer": "104830f5-5503-4fb8-ab28-735d03809c30"
      }
  3. Withdraw

    • Endpoint: POST /withdraw
    • Request Body:
      {
        "idAccount": "100491a1-f568-476c-9604-ff76334fac4b",
        "amount": 50
      }
  4. Deposit

    • Endpoint: POST /deposit
    • Request Body:
      {
        "idAccount": "100491a1-f568-476c-9604-ff76334fac4b",
        "amount": 50
      }
  5. Check Balance

    • Endpoint: GET /balance/{{uuid}}
  6. View Statement

    • Endpoint: GET /statement/{{uuid}}
  7. Transaction Between Accounts

    • Endpoint: POST /transaction
    • Request Body:
      {
        "accountSender": "94860c46-2498-4af1-8123-2eb6cf52923e",
        "accountReceiver": "100491a1-f568-476c-9604-ff76334fac4b",
        "amount": 15.50
      }

Future Improvements

  • Value Objects
  • Transaction Database
  • Validations

bank_php's People

Contributors

danubiam avatar

Watchers

Lucian avatar  avatar  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.