Skip to content

Squad002/celery-service

Repository files navigation

Build Status Coverage Status

GoOutSafe - Celery microservice

Local

# Install Dependencies
pip install -r requirements/dev.txt

# Deploy
flask deploy

# Run 
export FLASK_APP="app.py"
export FLASK_ENV=development
flask run

# Start Server mail
python -m smtpd -n -c DebuggingServer localhost:8025
# Start Redis
docker run --name redis -p 6379:6379 redis

Docker Image

docker build -t celery-service:latest . 
docker run -p 5000:5000 celery-service 

Tests with coverage

Inside user-service run (it will automatically use the configuration in pyproject.toml):

pytest