Crates.io | maga |
lib.rs | maga |
version | 0.3.0 |
source | src |
created_at | 2022-02-18 18:35:58.232881 |
updated_at | 2022-02-20 11:34:24.640506 |
description | Random Donald Trump's tweets |
homepage | https://github.com/nbittich/maga-rs |
repository | |
max_upload_size | |
id | 534825 |
size | 17,336,869 |
🚀 blazing fast!! 🚀 barely unsafe !! 🔥 generates random tweets in 10e8 ns!! 🚀
sudo apt install libwebkit2gtk-4.0-dev libgtk-3-dev libappindicator3-dev
`cargo install maga
maga # prints one tweet to the terminal
maga-desktop # Open the desktop app
maga --count=2 # prints 2 tweets to the terminal
maga-serve # small rest endpoint -- Default port is 8000
maga-serve --port=<port> # change default port
http://localhost:8000?count=1
docker build -t relz -f Dockerfile.stable .
docker run -it relz maga -c 1
docker run -it -p 9999:9999 relz maga-serve -p 9999
docker build -t dev -f Dockerfile.dev .
docker run -it dev maga -c 1
docker run -it -p 9999:9999 dev maga-serve -p 9999