Add initial project structure with Docker, CI, and FastAPI setup
CI / lint-test-build (push) Failing after 8m23s

- Create Dockerfile and docker-compose.yml for containerization
- Add CI configuration for linting and testing
- Implement FastAPI application with health check routes
- Set up database schema using DuckDB
- Include environment configuration and secrets management
- Add README with project objectives and key features
- Implement logging setup and configuration
- Create initial tests for health route
- Add HTML templates for web interface
This commit is contained in:
2026-06-01 09:15:38 +02:00
commit f3f369ad6b
23 changed files with 585 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{{ title or "Arbitrade" }}</title>
<script src="https://unpkg.com/htmx.org@1.9.12"></script>
<style>
:root {
--bg: #f4f7f5;
--ink: #122118;
--accent: #1f7a4c;
--card: #ffffff;
}
body {
margin: 0;
font-family: "Segoe UI", sans-serif;
color: var(--ink);
background: radial-gradient(circle at top, #e9f7ef, var(--bg));
}
.wrap {
max-width: 720px;
margin: 4rem auto;
padding: 0 1rem;
}
.card {
background: var(--card);
border: 1px solid #d8e7dd;
border-radius: 12px;
padding: 1.25rem;
box-shadow: 0 6px 24px rgba(18, 33, 24, 0.08);
}
.badge {
display: inline-block;
background: #d9f3e5;
color: var(--accent);
border-radius: 999px;
padding: 0.2rem 0.6rem;
font-size: 0.85rem;
}
</style>
</head>
<body>
<main class="wrap">{% block content %}{% endblock %}</main>
</body>
</html>
+14
View File
@@ -0,0 +1,14 @@
{% extends "base.html" %}
{% block content %}
<section class="card">
<h1>Arbitrade Bootstrap Complete</h1>
<p><span class="badge">Status: {{ status }}</span></p>
<p>UTC: {{ time }}</p>
<p>
Health JSON:
<a href="/health" hx-get="/health" hx-target="#health-json" hx-swap="innerHTML">refresh</a>
</p>
<pre id="health-json">{"status":"ok","service":"arbitrade"}</pre>
</section>
{% endblock %}