initial commit
All checks were successful
Build and Push to ACR / Build and Push (push) Successful in 1m34s
All checks were successful
Build and Push to ACR / Build and Push (push) Successful in 1m34s
Change-Id: I11e12d8d4c914eabdc30ba4d8be494fd09b617a3
This commit is contained in:
65
README.md
Normal file
65
README.md
Normal file
@@ -0,0 +1,65 @@
|
||||
# test-alex-2
|
||||
|
||||
test-alex-2
|
||||
|
||||
**Runtime**: Java 17 · Spring Boot 3.2
|
||||
**Owner**: group:default/platform-engineering
|
||||
**Platform**: Humanitec · Project `test-alex-2`
|
||||
|
||||
## Quick Start
|
||||
|
||||
### Prerequisites
|
||||
- JDK 17+
|
||||
- Maven 3.9+
|
||||
|
||||
### Run locally
|
||||
```bash
|
||||
mvn spring-boot:run
|
||||
```
|
||||
|
||||
The service listens on **http://localhost:8080**.
|
||||
|
||||
### Endpoints
|
||||
| Method | Path | Description |
|
||||
|--------|------|-------------|
|
||||
| GET | `/api/items` | List all items |
|
||||
| POST | `/api/items` | Create a new item |
|
||||
| GET | `/api/items/{id}` | Get item by ID |
|
||||
| PUT | `/api/items/{id}` | Update item |
|
||||
| DELETE | `/api/items/{id}` | Delete item |
|
||||
| GET | `/actuator/health` | Health check |
|
||||
| GET | `/actuator/prometheus` | Prometheus metrics |
|
||||
|
||||
### Example requests
|
||||
```bash
|
||||
# Create an item
|
||||
curl -X POST http://localhost:8080/api/items \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"name": "Widget", "description": "A demo widget"}'
|
||||
|
||||
# List all items
|
||||
curl http://localhost:8080/api/items
|
||||
```
|
||||
|
||||
## Build
|
||||
```bash
|
||||
mvn package -DskipTests
|
||||
java -jar target/*.jar
|
||||
```
|
||||
|
||||
## Container
|
||||
```bash
|
||||
docker build -t test-alex-2:dev .
|
||||
docker run -p 8080:8080 test-alex-2:dev
|
||||
```
|
||||
|
||||
## CI/CD
|
||||
|
||||
Push to `main` triggers:
|
||||
1. **build-push.yml** — Maven build → ACR push
|
||||
2. **deploy-humanitec.yml** — `humctl score deploy` to ``
|
||||
|
||||
## Links
|
||||
- [Humanitec Console](https://console.humanitec.dev/orgs/skillful-wild-chicken-2617/projects/test-alex-2)
|
||||
- [Source Repository](https://gitea.kyndemo.live/demo-platform/test-alex-2)
|
||||
- [TechDocs](https://backstage.kyndemo.live/docs/default/component/test-alex-2)
|
||||
Reference in New Issue
Block a user