Chat so small it fits in 1 python file
🚧 This project is in active development. Things might be broken and will likely change.
Make sure you have Poetry installed
LIVE_RELOAD=yes poetry run python app.py
If running tests for the first time, install drivers for playwright
poetry run playwright install
Run tests
TEST_MODE=yes poetry run pytest app.py --base-url http://localhost:5002
Run tests with debugger
TEST_MODE=yes PWDEBUG=1 poetry run pytest app.py --base-url http://localhost:5002 -s
Check deploy branch for an example deployment approach. Additional deps:
poetry run locust -f locustfile.py --headless
- get number of CPUs
getconf _NPROCESSORS_ONLN
- get total memory
grep MemTotal /proc/meminfo
or usefree
: shows total, used - people talking about hosting laravel sites on $6 droplets: https://www.reddit.com/r/laravel/comments/watkc0/how_many_laravel_projects_can_a_digital_ocean_6/
docker build -t tinychat . docker run --cpus=1 -m 412m -d --name tinychat -p 5001:5001 -v $PWD/data:/code/data tinychat