test some technologies

This commit is contained in:
Nico Schottelius 2026-06-13 07:29:26 +02:00
commit 083a29f2b1
3 changed files with 79 additions and 0 deletions

View file

@ -0,0 +1,32 @@
<html>
<head>
<title>test</title>
<script src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.10/dist/htmx.min.js"
integrity="sha384-H5SrcfygHmAuTDZphMHqBJLc3FhssKjG7w/CeCpFReSfwBWDTKpkzPP8c+cLsK+V"
crossorigin="anonymous"></script>
<!-- have a button POST a click via AJAX -->
</head>
<body>
<div id=parent-div>
original foo
</div>
<div id=post>
<button hx-post="http://localhost:8000/clicked"
hx-trigger="click"
hx-target="#parent-div"
hx-swap="outerHTML">
Click Me!
</button>
</div>
<div id=get>
<button hx-get="http://localhost:8000/"
hx-trigger="click"
hx-target="#parent-div"
hx-swap="outerHTML">
Click Me!
</button>
</div>
</body>
</html>

View file

@ -0,0 +1,15 @@
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
async def root():
return "Text1"
# return {"message": "Hello World"}
@app.post("/clicked")
async def clicky():
#return {"message": "Hello World"}
return "Text2"

View file

@ -0,0 +1,32 @@
version: '3.2'
volumes:
db:
services:
killbill:
image: killbill/killbill:0.24.16
ports:
- "8080:8080"
environment:
- KILLBILL_DAO_URL=jdbc:mysql://db:3306/killbill
- KILLBILL_DAO_USER=root
- KILLBILL_DAO_PASSWORD=killbill
- KILLBILL_CATALOG_URI=SpyCarAdvanced.xml
kaui:
image: killbill/kaui:4.0.4
ports:
- "9090:8080"
environment:
- KAUI_CONFIG_DAO_URL=jdbc:mysql://db:3306/kaui
- KAUI_CONFIG_DAO_USER=root
- KAUI_CONFIG_DAO_PASSWORD=killbill
- KAUI_KILLBILL_URL=http://killbill:8080
db:
image: killbill/mariadb:0.24
volumes:
- type: volume
source: db
target: /var/lib/mysql
expose:
- "3306"
environment:
- MYSQL_ROOT_PASSWORD=killbill