This repository contains API backend code for Svitle Radio, a Christian radio station in Kyiv, Ukraine.
Build a docker image:
docker build -t svitle_api .
Start redis (if not running) and the app container:
docker network create svitle_api_redis
docker run -d --restart always --network svitle_api_redis \
--name svitle_redis redis
docker run -d --restart always --network svitle_api_redis \
-p 8087:5000 -e 'REDIS_URL=redis://svitle_redis:6379' \
--name svitle_api svitle_api
The app will be available on port 8087
Install dependencies:
pip install pipenv
pipenv install
Start redis:
docker run --name svitle_redis -p 16379:6379 -d redis
Start development server:
REDIS_URL=redis://localhost:16379 pipenv run python app.py