This project provides the following function:
- Create User/Admin
- Login User/Admin
- Create a loan by User
- Approve a loan by Admin
- Pay the loan through scheduled payment
-
git clone https://github.com/alifruliarso/simpleloan.git cd simpleloan
- Default api url : http://localhost:8000/api/
- MySQL can be accessed from host using port 33066, user=root with empty password
- For using different port, change it inside application's
.env
fileAPP_PORT=8000 FORWARD_DB_PORT=33066
-
Run the following command :
cd simpleloan cp .env.sample .env make dev
-
Change the directory, and Install the dependencies:
cd simpleloan cp .env.sample .env composer install
-
Generate application key:
php artisan key:generate
-
Run database migration with seeder:
php artisan migrate --seed
-
Start the local server:
php artisan serve
- Swagger UI : http://localhost:8000/swagger-ui
./vendor/bin/pint
php artisan test
composer openapi
sail up Start the application
sail up -d Start the application in the background
sail stop Stop the application
sail restart Restart the application
sail ps Display the status of all containers
Email: [email protected]
Password: 123456
Email: [email protected]
Password: 123456
This starter kit is inspired by the project Pandora, laravel-makefile.