Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1023 Bytes

README.md

File metadata and controls

42 lines (26 loc) · 1023 Bytes

Pesacheck Meedan Bridge

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.

Getting Started

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.

Build

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

Run

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