Git Product home page Git Product logo

simpleloan's Introduction

Simple Loan REST API

This project provides the following function:

  1. Create User/Admin
  2. Login User/Admin
  3. Create a loan by User
  4. Approve a loan by Admin
  5. Pay the loan through scheduled payment

Setup local development

Clone the project

  • git clone https://github.com/alifruliarso/simpleloan.git
    cd simpleloan

Setup environment variable.

  • 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 file
    APP_PORT=8000
    FORWARD_DB_PORT=33066
    

Install With Docker (Sail).

  • Run the following command :

    cd simpleloan
    cp .env.sample .env
    make dev

Install Without Docker

  1. Change the directory, and Install the dependencies:

    cd simpleloan
    cp .env.sample .env
    composer install
  2. Generate application key:

    php artisan key:generate
  3. Run database migration with seeder:

    php artisan migrate --seed
  4. Start the local server:

    php artisan serve

Features

API Documentation

Code style and lint using Laravel Pint

./vendor/bin/pint

Running the Test.

php artisan test

To generate the OpenAPI Specification file, run command:

composer openapi

docker-compose Commands

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

Demo User Credentials

Email: [email protected]
Password: 123456

Demo Admin Credentials

Email: [email protected]
Password: 123456

Credits

This starter kit is inspired by the project Pandora, laravel-makefile.

simpleloan's People

Contributors

alifruliarso avatar

Watchers

 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.