Skip to content

callmephilip/tinychat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e1b3bc7 Â· Nov 25, 2024
Nov 1, 2024
Nov 13, 2024
Nov 21, 2024
Nov 13, 2024
Nov 1, 2024
Nov 25, 2024
Nov 25, 2024
Nov 1, 2024
Nov 1, 2024
Nov 13, 2024
Nov 21, 2024
Nov 21, 2024
Nov 1, 2024
Nov 20, 2024
Nov 20, 2024

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