https://github.com/andreacrotti/secret-santa
https://github.com/andreacrotti/secret-santa
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/andreacrotti/secret-santa
- Owner: AndreaCrotti
- Created: 2024-10-21T16:46:49.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-23T16:09:40.000Z (over 1 year ago)
- Last Synced: 2024-12-31T00:16:39.088Z (over 1 year ago)
- Language: Python
- Size: 160 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tech stack
- Python+poetry+Flask
- HTMX
- SQLite
# How to run
You can see it in action on [fly.io](https://secret-santa.fly.dev/).
To run it locally, you need to have [poetry](https://python-poetry.org/) installed, and then run:
- `poetry install`
- `poetry shell`
- `flask db upgrade` (to create a sqlite database)
and finally run with `flask run --debug` and check [localhost:5000](http://localhost:5000/)
This is how it looks like with dark theme enabled on your browser for example:

# Decisions
To do the task in the suggested maximum time I had to cut things like:
- tests
- a responsive UI
- error handling
Instead I made sure the minimum features were working, and I invested a bit more time in making it deployable on fly.io.
All the code is a single file, since it was simple enough and didn't really make sense to split at this point.