-
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.
Add support .env and add description in README.
- Loading branch information
Djapy
committed
Apr 6, 2019
1 parent
9d7e896
commit fdbc035
Showing
6 changed files
with
65 additions
and
16 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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# PDF delivery | ||
|
||
The service consists of two microservices. | ||
- handler html code and the initiator of the call processing html is written | ||
in aiohttp | ||
- simple, Docker-powered PDF conversions athena - read more [here](https://github.com/arachnys/athenapdf) | ||
|
||
Which communicate with each other via http. | ||
|
||
# Build and run | ||
|
||
- Clone the repository to your computer. | ||
- Configure `example.env` and rename to `.env`. | ||
- From the root directory of the project, run the `docker build --tag=testconvertpdf .` | ||
- Start docker-compose `docker-compose up` | ||
- The service is ready to use. | ||
|
||
#How to use | ||
|
||
Any client make a post request to the address `0.0.0.0:8500` and pass any html. | ||
In response, you will receive a generated pdf. | ||
|
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
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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
SERVER_HOST='aiohttp' | ||
SERVER_PORT=port for aiohttp | ||
|
||
SERVICE_HOST='athena' | ||
SERVICE_PORT='port for athena' | ||
|
||
EXTERNAL_HOST = '0.0.0.0' | ||
EXTERNAL_PORT = '8500' |
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