Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
}
]
```