deutsche-bank-demo

deutsche-bank-demo

Stars
1

Deutsche Bank Demo 💶

This is a demo project for Deutsche Bank. The project was made with MVC architectural pattern.

🛰️ Requirements

Java 17 or higher

📡 How to run

  1. Clone the project
  2. Run the database with docker-compose -f infrastructure/postgresql.yml up -d (optional). If you don't want to use docker, you can use your own database. Just change the spring.datasource.url property in application-dev.yml file. The default database is deutsche_bank_demo and the default user is my_admin with password my_password.
  3. Run ./mvnw spring-boot:run
  4. Open your browser and go to http://localhost:8080
  5. Enjoy!

🧪 How to run tests

  1. Clone the project
  2. Run ./mvnw test
  3. Enjoy!

📰 Documentation

The documentation is available at Swagger UI

🛰 Example of curl request

  1. Create a new NACE record

    curl --location --request POST 'http://localhost:8080/nace' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "level": 1,
        "code": "code",
        "parent": "parent",
        "description": "description",
        "includes": "includes",
        "also_includes": "alsoIncludes",
        "rulings": "rulings",
        "excludes": "excludes",
        "reference": "reference"
    }'
    
  2. Get a NACE record by id

    curl --location --request GET 'http://localhost:8080/nace/7'
    
  3. Get a NACE record by code

    curl --location --request GET 'http://localhost:8080/nace/c/AA'
    
Badges
Extracted from project README
Java CI Quality Gate Status Technical Debt Reliability Rating Duplicated Lines (%) Vulnerabilities Bugs Security Rating Maintainability Rating Code Smells Lines of Code Coverage