Skip to content

REST API coded with Kotlin using Spring Boot with inmemory H2 database versioned by Flyway.

Notifications You must be signed in to change notification settings

barreto/credit-request-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Credit Request System API

Rest API created for a fictitious lending company where the objective is to manage customers and credit requests.

Table of Contents
  1. Concept
  2. Getting Started
  3. Collection
  4. References

Concept

In addition to customer management, the system must be able to perform a new credit request, list all credit requests for a given customer and detail a specific credit request.

Business rules

  • Number of installments must be between 1 and 48.
  • Max day of first installment is 3 months in the future from today.
  • Only the client who request the credit can get credit request details.

Database model

The entity relation that determines the logical structure of a database. Database model.png

Project architecture

The project is organized in a three layers architecture. Three layers architecture.png

Getting Started

Prerequisites

Get Java17 installed in your environment.

Important: Make sure that your JAVA_HOME environment variable is correctly exported

Installation

  1. Clone the repo:
git clone https://github.com/barreto/credit-request-system
  1. Enter the application directory:
cd credit-request-system
  1. Set the database environment variables
    db_username=<username>
    db_password=<password>

Both of these variables will be used for the H2, an inmemory database, so you don't need to configure it.

How to run

Using inproject gradle:

./gradlew bootRun

Collection

Download and import the collection file in your Insomnia to enjoy this API.

Collection preview.png Import in Insomnia

References

back to top ↑

About

REST API coded with Kotlin using Spring Boot with inmemory H2 database versioned by Flyway.

Topics

Resources

Stars

Watchers

Forks

Languages