Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/james-kennet/springboot2-github-actions
SpringBoot 2.7 api service with Github Actions
https://github.com/james-kennet/springboot2-github-actions
Last synced: 6 days ago
JSON representation
SpringBoot 2.7 api service with Github Actions
- Host: GitHub
- URL: https://github.com/james-kennet/springboot2-github-actions
- Owner: james-kennet
- License: mit
- Created: 2023-01-02T12:11:38.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-09T14:11:35.000Z (3 months ago)
- Last Synced: 2024-08-09T15:35:28.888Z (3 months ago)
- Language: Java
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## springboot2-github-actions service
SpringBoot 2.7 api service with Github Actions### Prerequisite on running this service:
- At least Java 11
- Install Docker Desktop.### Tech stack and services.
- H2
- Docker### Steps in running redis-caching in local.
- Go to the main repo directory.
```bash
cd /springboot2-github-actions
```
- Install/package springboot2-github-actions.
```bash
mvn clean install
```
- Build the image of the service
```bash
docker build -t app .
```
- Run the service
```bash
docker run -p 8080:8080 app
```### Verifications.
```bash
curl --location --request GET 'http://localhost:8080/app/persons' \
--header 'Content-Type: application/json'
Response:
[
{
"id": 1,
"name": "Mike",
"gender": "Male",
"age": 50
},
{
"id": 2,
"name": "Rachel",
"gender": "Female",
"age": 98
},
{
"id": 3,
"name": "Tristan",
"gender": "Male",
"age": 5
},
{
"id": 4,
"name": "Sheryll",
"gender": "Female",
"age": 35
},
{
"id": 5,
"name": "Timon",
"gender": "Male",
"age": 51
}
]
```