-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates Readme on instructions to run pesacheck_meedan_bridge
- Loading branch information
1 parent
d33e8de
commit 251000b
Showing
2 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,41 @@ | ||
# PesaCheck Meedan Bridge | ||
# Pesacheck Meedan Bridge | ||
|
||
A simple service to pull articles from PesaCheck and post them to Meedan Check | ||
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, | ||
|
||
```sh | ||
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: | ||
|
||
```sh | ||
pants package pesacheck_meedan_bridge/py:pesacheck_meedan_bridge | ||
``` | ||
|
||
To build the docker image, run: | ||
|
||
```sh | ||
VERSION=$(cat pesacheck_meedan_bridge/py/VERSION) pants package pesacheck_meedan_bridge/docker:pesacheck_meedan_bridge | ||
``` | ||
|
||
## Run | ||
|
||
To run the built docker image, execute: | ||
|
||
```sh | ||
docker compose --env-file ./pesacheck_meedan_bridge/.env up pesacheck_meedan_bridge | ||
``` | ||
|
||
To run `pex` binary, execute: | ||
|
||
```sh | ||
docker exec -it ${container_name} ./pex | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.1.12 | ||
0.1.17 |