tidy messages and stuff
This commit is contained in:
3 files changed
+10
-36
No files matched your search
@@ -8,16 +8,15 @@ A small server-rendered poker ledger app for low-stakes no-limit hold'em nights.
|
|||||||
- Flask
|
- Flask
|
||||||
- Jinja templates
|
- Jinja templates
|
||||||
- Chart.js
|
- Chart.js
|
||||||
- Custom CSS
|
|
||||||
- Append-only CSV event ledger
|
- Append-only CSV event ledger
|
||||||
|
|
||||||
## What this MVP does
|
## Stuff is does
|
||||||
|
|
||||||
- Public all-time leaderboard
|
- All-time leaderboard
|
||||||
- Public session archive
|
- Session archive
|
||||||
- Public per-player stat pages
|
- Per player stat pages
|
||||||
- Admin-only login for adding ledger events
|
- Admin only login for adding ledger events
|
||||||
- Append-only `entries.csv` audit trail
|
- Append only `entries.csv` audit trail
|
||||||
- Buy-ins, cash-outs, note-only events, and correction events using negative amounts
|
- Buy-ins, cash-outs, note-only events, and correction events using negative amounts
|
||||||
- Cumulative profit chart and player charts
|
- Cumulative profit chart and player charts
|
||||||
|
|
||||||
@@ -57,11 +56,6 @@ export $(grep -v '^#' .env | xargs)
|
|||||||
python app.py
|
python app.py
|
||||||
```
|
```
|
||||||
|
|
||||||
Open:
|
|
||||||
|
|
||||||
- public site: `http://127.0.0.1:5000/leaderboard`
|
|
||||||
- admin login: `http://127.0.0.1:5000/admin/login`
|
|
||||||
|
|
||||||
## Default environment values
|
## Default environment values
|
||||||
|
|
||||||
The app reads these environment variables:
|
The app reads these environment variables:
|
||||||
@@ -69,18 +63,3 @@ The app reads these environment variables:
|
|||||||
- `SECRET_KEY`
|
- `SECRET_KEY`
|
||||||
- `ADMIN_USERNAME`
|
- `ADMIN_USERNAME`
|
||||||
- `ADMIN_PASSWORD`
|
- `ADMIN_PASSWORD`
|
||||||
|
|
||||||
If you do not set them, the app falls back to insecure defaults for local development only.
|
|
||||||
|
|
||||||
## Suggested next steps
|
|
||||||
|
|
||||||
- Add session filters like last 5, 10, 20, all
|
|
||||||
- Add player color editing
|
|
||||||
- Add export/import tools
|
|
||||||
- Add session status like open and closed
|
|
||||||
- Replace CSV storage with SQLite later without changing the page layer
|
|
||||||
- Add reverse proxy deployment with Caddy or Nginx
|
|
||||||
|
|
||||||
## Deploy notes
|
|
||||||
|
|
||||||
For a private home-hosted deployment, I would run this behind Caddy or Nginx and set real environment variables instead of using defaults.
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block title %}Admin · Poker Portal{% endblock %}
|
{% block title %}Admin - Poker Portal{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<section class="hero-card compact">
|
<section class="hero-card compact">
|
||||||
<div>
|
<div>
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
<label>
|
<label>
|
||||||
<span>Player name</span>
|
<span>Player name</span>
|
||||||
<input list="player_names" type="text" name="player_name" placeholder="Braeden" required>
|
<input list="player_names" type="text" name="player_name" placeholder="Peter Venkman" required>
|
||||||
<datalist id="player_names">
|
<datalist id="player_names">
|
||||||
{% for player_name in player_names %}
|
{% for player_name in player_names %}
|
||||||
<option value="{{ player_name }}"></option>
|
<option value="{{ player_name }}"></option>
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
<label>
|
<label>
|
||||||
<span>Amount</span>
|
<span>Amount</span>
|
||||||
<input type="number" step="0.01" name="amount" placeholder="50.00">
|
<input type="number" step="0.01" name="amount" placeholder="5.00">
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label>
|
<label>
|
||||||
@@ -48,11 +48,6 @@
|
|||||||
<textarea name="note" rows="4" placeholder="Rebuy, correction, settled chips later, etc."></textarea>
|
<textarea name="note" rows="4" placeholder="Rebuy, correction, settled chips later, etc."></textarea>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<div class="helper-box">
|
|
||||||
<strong>Tip:</strong>
|
|
||||||
<span>Use positive amounts for normal buy-ins and cash-outs. Use negative amounts to correct a previous entry without editing history.</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<button class="primary-button" type="submit">Add event</button>
|
<button class="primary-button" type="submit">Add event</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<p class="eyebrow">Session detail</p>
|
<p class="eyebrow">Session detail</p>
|
||||||
<h1>{{ session.session_date | pretty_date }}</h1>
|
<h1>{{ session.session_date | pretty_date }}</h1>
|
||||||
<p class="muted-text">Current totals are derived from the append-only event log for this date.</p>
|
<p class="muted-text">Current totals are derived from the event log for this date.</p>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user