python3 -m venv <venv>
. <venv>/bin/activate
Pip install -r requirements.txt
- Create .env using .env-example as template
- Set key cloak client and secret
- ensure client is configured as global admin
- Ensure REDIS instance is running and configurations set correctly
- Ensure Portal API instance is running and configurations set correctly
- For Google Pub Sub
- Set path to GCP credentials file (need service account and key)
- For Kafka
- Ensure Kafka Broker running and configurations set correctly
PYTHONPATH=$(pwd) python3 app/subscribers/streaming_subscriber.py
PYTHONPATH=$(pwd) python3 app/subscribers/streaming_transformed_subscriber.py
uvicorn app.transform_service.main:app --port=8200 --reload
faust -A app.subscribers.kafka_subscriber worker --without-web -l info