pipenv install
docker-compose up
.env file Please refer .env.example
#Django
DJANGO_SECRET_KEY =
DEBUG =
#Elasticsearch
ELASTICSEARCH_ENDPOINT =
#PostgreSQL
POSTGRES_DB =
POSTGRES_USER =
POSTGRES_PASSWORD =
POSTGRES_DB_URL =
#ChatGPT
CHATGPT_APIKEY =
#RabbitMQ
RABBITMQ_ENABLE =
RABBITMQ_USERNAME =
RABBITMQ_PASSWORD =
RABBITMQ_SERVER_IP =
RABBITMQ_PORT =
RABBITMQ_VIRTUAL_HOST =
#Celery
BROKER_URL =
#Redis
REDIS_URL=
...
pipenv run python manage.py migrate
pipenv run python manage.py search_index --create
pipenv run python manage.py search_index --populate --refresh
pipenv run python manage.py runserver 0.0.0.0:8000
pipenv run python manage.py MQTTListener
python -m venv .
Scripts/activate
Scripts/deactivate
pip install -r requirements.txt
pip freeze > requirements.txt
python manage.py test PetMonitoringSystemBackend.test [--verbosity 2]# Unit Test --verbosity 2 is output detail
python manage.py test api.tests.unit [--verbosity 2]# Unit Test --verbosity 2 is output detail
python manage.py test api.tests.integration #Intergration Test
python manage.py test #All Test
daphne -b 0.0.0.0 -p 8000 PetMonitoringSystemBackend.asgi:application