2024-05-28 10:34:01 +04:00
|
|
|
.PHONY: run run-backend run-frontend test
|
2024-04-28 13:12:00 +04:00
|
|
|
|
2024-04-28 13:06:34 +04:00
|
|
|
run:
|
2024-05-04 10:27:57 +04:00
|
|
|
# See backend/config.py for more fields
|
|
|
|
HOST=127.0.0.1 PORT=4009 \
|
|
|
|
COOKIES_DIR=cookies \
|
|
|
|
python3 ./backend/main.py
|
2024-04-28 13:06:34 +04:00
|
|
|
|
2024-05-28 10:34:01 +04:00
|
|
|
run-backend: run
|
2024-04-28 13:06:34 +04:00
|
|
|
|
2024-05-28 10:34:01 +04:00
|
|
|
run-frontend:
|
|
|
|
@echo 'Only for development environment!'
|
|
|
|
caddy run
|
2024-04-28 13:06:34 +04:00
|
|
|
|
2024-05-28 10:34:01 +04:00
|
|
|
test:
|
|
|
|
python3 -m unittest discover -vcs ./backend
|
2024-05-28 11:10:38 +04:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf backend/__pycache__ .ruff_cache
|