Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/theihasan/laravel-bank
https://github.com/theihasan/laravel-bank
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/theihasan/laravel-bank
- Owner: theihasan
- Created: 2024-05-06T18:28:32.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-07T03:32:38.000Z (8 months ago)
- Last Synced: 2024-06-28T15:22:42.607Z (6 months ago)
- Language: PHP
- Size: 136 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Laravel Bank Management System
Installation Guide
- Clone the repository from GitHub.
git clone https://github.com/imabulhasan99/laravel-bank.git
- Install Composer dependencies by running
composer install
.
- Copy .env from .env.example
cp .env.example .env
.
- Create a new database and configure the database connection in the
.env
file.
- Run migrations and seeders with
php artisan migrate
.
- Generate an application key with
php artisan key:generate
.
- Start the development server with
php artisan serve
.
- 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.