Skip to content

Latest commit

 

History

History
 
 

backend

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Backend

- Install

Install poetry

create a new virtual environment (Python 3.11)

pip install poetry
poetry install

Install packages in macOS

brew install portaudio
brew install ffmpeg
# brew install chardet

- Run locally

Run redis in docker

docker run -p 6379:6379 --name starmoon-redis -d redis
# docker run -d -p 6379:6379 redis

Run server (in different terminals)

poetry run uvicorn app.main:app --ws-ping-interval 600 --ws-ping-timeout 600 --reload --host 0.0.0.0
poetry run celery -A app.celery.worker.celery_app worker --loglevel=info
poetry run celery -A app.celery.worker.celery_app flower --port=5555
poetry run celery -A app.celery.worker.celery_app beat --loglevel=info

Run client

poetry run python test/main.py