2024-05-28 09:34:01 +03:00
|
|
|
.PHONY: run run-backend run-frontend test
|
2024-04-28 12:12:00 +03:00
|
|
|
|
2024-04-28 12:06:34 +03:00
|
|
|
run:
|
2024-05-04 09:27:57 +03: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 12:06:34 +03:00
|
|
|
|
2024-05-28 09:34:01 +03:00
|
|
|
run-backend: run
|
2024-04-28 12:06:34 +03:00
|
|
|
|
2024-05-28 09:34:01 +03:00
|
|
|
run-frontend:
|
|
|
|
@echo 'Only for development environment!'
|
|
|
|
caddy run
|
2024-04-28 12:06:34 +03:00
|
|
|
|
2024-05-28 09:34:01 +03:00
|
|
|
test:
|
|
|
|
python3 -m unittest discover -vcs ./backend
|
2024-05-28 10:10:38 +03:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf backend/__pycache__ .ruff_cache
|