Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/theihasan/laravel-bank


https://github.com/theihasan/laravel-bank

Last synced: 13 days ago
JSON representation

Awesome Lists containing this project

README

        

## Laravel Bank Management System

Installation Guide



  1. Clone the repository from GitHub. git clone https://github.com/imabulhasan99/laravel-bank.git

  2. Install Composer dependencies by running composer install.

  3. Copy .env from .env.example cp .env.example .env.

  4. Create a new database and configure the database connection in the .env file.

  5. Run migrations and seeders with php artisan migrate.

  6. Generate an application key with php artisan key:generate.

  7. Start the development server with php artisan serve.

  8. Access the application in your web browser.


Routes



  • POST /users: Create a new user with the provided name and account type.

  • POST /login: Login user with the email and password.

  • GET / Show all the transactions and current balance. It is your main dashboard

  • GET /deposit: Show all the deposited transactions.

  • POST /deposit: Accept the user ID and amount, and update the user's balance by adding the deposited amount.

  • GET /withdrawal Show all the withdrawal transactions.

  • POST /withdrawal Accept the user ID and amount, and update the user's balance by deducting the withdrawn amount.


Features



  • User management: Create users and handle logins securely.

  • Transaction handling: Deposit and withdraw funds with appropriate fees and conditions.

  • Each Friday withdrawal is free of charge.

  • The first 1K withdrawal per transaction is free, and the remaining amount will be charged.

  • The first 5K withdrawal each month is free.

  • Decrease the withdrawal fee to 0.015% for Business accounts after a total withdrawal of 50K.

  • Account type differentiation: Individual and Business accounts have different withdrawal rates and conditions.

  • Secure transactions: Use database transactions to ensure data integrity.

  • Error handling: Handle insufficient balance and other errors gracefully.