Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/storopoli/stoic-quotes
Stoic Quotes
https://github.com/storopoli/stoic-quotes
askama axum htmx rust stoic stoicism tailwindcss
Last synced: 27 days ago
JSON representation
Stoic Quotes
- Host: GitHub
- URL: https://github.com/storopoli/stoic-quotes
- Owner: storopoli
- License: cc0-1.0
- Created: 2024-01-08T11:41:13.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-06-29T11:20:31.000Z (4 months ago)
- Last Synced: 2024-06-29T12:32:32.794Z (4 months ago)
- Topics: askama, axum, htmx, rust, stoic, stoicism, tailwindcss
- Language: Rust
- Homepage: https://stoicquotes.io
- Size: 321 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Stoic Quotes
[![CC0](https://img.shields.io/badge/License-CC0-lightgrey.svg)](https://creativecommons.org/publicdomain/zero/1.0/)
[![MIT](https://img.shields.io/badge/License-MIT-lightgrey.svg)](https://opensource.org/license/mit/)The whole app runs with [Rust](https://rust-lang.org) using
[htmx](https://htmx.org)[^yavascript] and plain HTML for "reactivity"[^note].- [axum](https://tokio.rs/)
- [askama](https://djc.github.io/askama/)
- [htmx](https://htmx.org)
- [tailwindcss](https://tailwindcss.com/)
- [daisyui](https://daisyui.com)
- [Satoshi Font](https://www.fontshare.com/fonts/satoshi)
## Performance
This motherfucker is fast AF!
It only consumes 2.2mb of memory and the cheapest CPU VPS available will handle it.
The JSON data is loaded into memory (so that takes ≈0.2mb).
Leaving the whole app to consume 2mb of memory.:heart: Rust!
## Terminal-ready
Yes, if you despise the bloated browsers and you prefer the warm embrace
of the terminal you can get your stoic quotes without leaving the terminal:```bash
$ wget -qO- stoicquotes.io
"It is better to be despised for simplicity than to suffer agonies from everlasting pretense."
- Seneca$ curl stoicquotes.io
"It is better to be despised for simplicity than to suffer agonies from everlasting pretense."
- Seneca
```## Docker
You can also deploy it using Docker from the GitHub Container Registry:
```bash
docker pull ghcr.io/storopoli/stoic_quotes:latestdocker run -d --name stoic_quotes -p 443:3000 stoic_quotes
```By default it exposes port 3000 on the `axum` server.
You can safely map to HTTP (port 80) or HTTPS (port 443).## License
This content is licensed under a
[Creative Commons Public Domain CC0 1.0 License](https://creativecommons.org/publicdomain/zero/1.0/).The source code is licensed under a
[MIT License](https://opensource.org/license/mit/).[![CC0](https://licensebuttons.net/l/zero/1.0/88x31.png)](https://creativecommons.org/publicdomain/zero/1.0/)
[![MIT](https://upload.wikimedia.org/wikipedia/commons/f/f8/License_icon-mit-88x31-2.svg)](https://opensource.org/license/mit/)[^yavascript]: Look Mum! No YAVASCRIPT!
[^note]: [Hypermedia-Driven Applications](https://htmx.org/essays/hypermedia-driven-applications/)