edh-elo/NOTES.md
2024-01-23 22:48:36 -08:00

43 lines
1001 B
Markdown

# Development plan
- [X] Basic Game Definition
- [X] Basic Player Definition
- [ ] Basic Deck Definition
- [X] Figure out how to return JSON or html (`render_template`)
- [X] Basic testing
- [ ] ruff
- [ ] GitHub Actions for tests and linters
- [ ] Swagger API
- [ ] Local development tool to clear/seed database
...
- [ ] Authentication (will need to link `user` table to `player`)
...
- [ ] Helm chart including an initContainer to create the database if it doesn't exist already
# Tables
Tables:
* Decks
* Name
* Description
* Owner
* DecklistId (optional)
* Players (not the same as Users! Can model a Player who is not a User)
* Users
* Standard auth stuff
* Games
* Date
* Location
* DeckIds (array)
* WinningDeckId
* FinalTurnNum
* Notes
# Database Migrations
https://flask-sqlalchemy.palletsprojects.com/en/3.1.x/quickstart/#create-the-tables
# Authentication
https://www.digitalocean.com/community/tutorials/how-to-add-authentication-to-your-app-with-flask-login