A simple service to pull articles from PesaCheck and post them to Meedan Check using Meedan Graphql API. This service acts as a bridge between PesaCheck and Meedan Check, allowing for seamless transfer of articles from one platform to another.
First create .env
file in the app directory. From project root directory,
cp pesacheck_meedan_bridge/.env.example pesacheck_meedan_bridge/.env
and modify the .env
file according to your needs.
To build a pex
binary, run:
pants package pesacheck_meedan_bridge/py:pesacheck_meedan_bridge
To build the docker image, run:
VERSION=$(cat pesacheck_meedan_bridge/py/VERSION) pants package pesacheck_meedan_bridge/docker:pesacheck_meedan_bridge
To run the built docker image, execute:
docker compose --env-file ./pesacheck_meedan_bridge/.env up pesacheck_meedan_bridge
To run pex
binary, execute:
docker compose exec api-pesacheck_meedan_bridge ./pex