Skip to content

callmephilip/tinychat

Repository files navigation

tinychat

Chat so small it fits in 1 python file

🚧 This project is in active development. Things might be broken and will likely change.

Screenshot

Hacking on the app locally

Make sure you have Poetry installed

LIVE_RELOAD=yes poetry run python app.py

Running tests locally

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

Deploy

Check deploy branch for an example deployment approach. Additional deps:

Run load tests

poetry run locust -f locustfile.py --headless

Figure out machine resources

Build and run docker locally

docker build -t tinychat . docker run --cpus=1 -m 412m -d --name tinychat -p 5001:5001 -v $PWD/data:/code/data tinychat

About

Chat so small it fits in 1 python file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published