https://github.com/toggle-corp/pdf-my-html
Convert html to pdf
https://github.com/toggle-corp/pdf-my-html
Last synced: 3 months ago
JSON representation
Convert html to pdf
- Host: GitHub
- URL: https://github.com/toggle-corp/pdf-my-html
- Owner: toggle-corp
- Created: 2022-03-18T05:42:04.000Z (about 3 years ago)
- Default Branch: develop
- Last Pushed: 2022-05-31T07:57:15.000Z (almost 3 years ago)
- Last Synced: 2025-01-09T07:13:03.205Z (4 months ago)
- Language: JavaScript
- Size: 185 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pdf my HTML
### Setup Instructions
Copy .env-sample to .env
`cp .env-sample .env`
### Usage
```bash
# Check health
curl 'http://localhost:8081/health-check'# Create cache
curl -X POST 'http://localhost:8000/cache'\
-H 'Content-Type: application/json'\
-d '{"url": "https://reliefweb.int/report/world/drowning-and-dehydration-are-main-causes-migrant-deaths-horn-africa"}'# Get cache
curl 'http://localhost:8081/cache?url=https://reliefweb.int/report/world/drowning-and-dehydration-are-main-causes-migrant-deaths-horn-africa'# Get cache file
curl 'http://localhost:8081/cache-file?hash='
```