generated from pagopa/template-payments-java-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d9b8531
commit d3d7e8a
Showing
29 changed files
with
109 additions
and
157 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Add the repository's code owners here | ||
* @pagopa/p4pa-admins @pagopa/payments-cloud-admin | ||
* @pagopa/p4pa-admins @pagopa/payments-cloud-admin @antocalo @Benedetta-fabbri @LarissaASLeite @RiccardoGiuliani @oleksiybozhykntt @ElisKina-dev |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
subscription=CHANGE_ME | ||
subscription=PROD-P4PA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
resource_group_name = "terraform-state-rg" | ||
storage_account_name = "tfappdevCHANGE_ME" | ||
storage_account_name = "tfappprodp4pa" | ||
container_name = "terraform-state" | ||
key = "NAME_OF_REPOSITORY.tfstate" | ||
key = "p4pa-pagopa-payments" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
prefix = "" | ||
env = "prod" | ||
env_short = "p" | ||
prefix = "p4pa" | ||
env = "prod" | ||
env_short = "p" | ||
domain = "payhub" | ||
location_short = "itn" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: TEMPLATE-PAYMENTS - Code Review | ||
name: p4pa-pagopa-payments - Code Review | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1 @@ | ||
# Example Repository Template | ||
|
||
This repository serves as an **example template** to kick-start your projects with pre-configured files and folders for **OpenAPI**, **Helm**, **Gradle**, **Java**, and **JUnit testing**. It is designed to streamline the initial setup of new projects and ensure consistency in project structure. | ||
|
||
--- | ||
|
||
## 📂 Repository Structure | ||
|
||
Here is a quick overview of the files and directories included in this repository: | ||
|
||
```plaintext | ||
. | ||
├── .devops/ # DevOps pipelines | ||
├── .github/ # GitHub configuration files | ||
├── gradle/ # Gradle wrapper files | ||
├── helm/ # Helm charts for Kubernetes deployments | ||
├── openapi/ # OpenAPI specification files | ||
├── src/ # Source code for the Java application | ||
│ ├── main/ | ||
│ └── test/ | ||
├── build.gradle.kts # Gradle build file | ||
├── Dockerfile # Docker build file | ||
├── README.md # Project documentation | ||
├── settings.gradle.kts # Gradle settings file | ||
└── .gitignore # Git ignore rules | ||
``` | ||
|
||
## 🚀 Features | ||
|
||
### 📜 OpenAPI | ||
- Example OpenAPI specification file (`template-payments-java-repository.openapi.yaml`) to document your RESTful APIs. | ||
- Compatible with tools like Swagger and Postman. | ||
|
||
### ⚙️ Helm | ||
- Template Helm charts for deploying your Java application on Kubernetes. | ||
- Includes `values.yaml` for parameter configuration and pre-defined deployment manifests. | ||
|
||
### 🔧 Gradle | ||
- `build.gradle` file with dependencies and plugins for building, testing, and running your Java application. | ||
- Compatible with Java 21+. | ||
|
||
### ☕ Java | ||
- Example Java application structure with a simple `HelloWorld` class. | ||
|
||
### ✅ JUnit | ||
- Example JUnit test cases under the `test/` directory to help you get started with unit testing. | ||
|
||
--- | ||
|
||
## 🛠️ Getting Started | ||
|
||
### Prerequisites | ||
Ensure the following tools are installed on your machine: | ||
1. **Java 21+** | ||
2. **Gradle** (or use the Gradle wrapper included in the repository) | ||
3. **Docker** (for Helm-related tasks, optional) | ||
# p4pa-pagopa-payments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ate-payments-java-repository.openapi.yaml → openapi/p4pa-pagopa-payments.openapi.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
rootProject.name = "template-payments-java-repository" | ||
rootProject.name = "p4pa-pagopa-payments" |
6 changes: 3 additions & 3 deletions
6
.../pagopa/template/TemplateApplication.java → ...papayments/PagoPaPaymentsApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
package it.gov.pagopa.template; | ||
package it.gov.pagopa.pu.pagopapayments; | ||
|
||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
@SpringBootApplication | ||
public class TemplateApplication { | ||
public class PagoPaPaymentsApplication { | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(TemplateApplication.class, args); | ||
SpringApplication.run(PagoPaPaymentsApplication.class, args); | ||
} | ||
|
||
} |
2 changes: 1 addition & 1 deletion
2
...pagopa/template/config/SwaggerConfig.java → .../pagopapayments/config/SwaggerConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...pa/template/config/SwaggerConfigTest.java → ...opapayments/config/SwaggerConfigTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.