https://github.com/jmbl1685/html-to-pdf-nodejs
📝 Generate PDF through the HTML content. (Node.js + Express.js)
https://github.com/jmbl1685/html-to-pdf-nodejs
ejs expressjs html-pdf nodejs requestify
Last synced: 8 months ago
JSON representation
📝 Generate PDF through the HTML content. (Node.js + Express.js)
- Host: GitHub
- URL: https://github.com/jmbl1685/html-to-pdf-nodejs
- Owner: jmbl1685
- Created: 2017-07-31T15:40:17.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-06-19T22:14:54.000Z (almost 8 years ago)
- Last Synced: 2025-05-12T15:57:29.337Z (about 1 year ago)
- Topics: ejs, expressjs, html-pdf, nodejs, requestify
- Language: JavaScript
- Homepage: https://www.youtube.com/watch?v=3HXl4Y-9dtE
- Size: 827 KB
- Stars: 10
- Watchers: 1
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Generate PDF through the HTML content.
Screenshots
* html-pdf
* node-fetch
* requestify
* izitoast
## DATA EXAMPLE
``` js
[
{
img: "https://bakedpizza.com.co/media/catalog/product/cache/1/small_image/500x500/9df78eab33525d08d6e5fb8d27136e95/h/a/hamburguesa_doble_carne_mex.png",
name: "Hamburgueza Todo Terreno",
description: "A description which may flow for several lines and give context to the content."
},
{
img: "https://cdn.discstore.com/media/catalog/product/cache/1/image/1800x/040ec09b1e35df139433887a97daa66f/p/i/pizza-top_2.jpg",
name: "Pizza de Peperonni y Champignones",
description: "A description which may flow for several lines and give context to the content."
},
{
img: "https://http2.mlstatic.com/excelentes-taquizas-y-comida-mexicana-D_NQ_NP_751821-MLM25734431910_072017-O.jpg",
name: "Arroz de Mariscos",
description: "A description which may flow for several lines and give context to the content."
},
{
img: "http://www.diabetesforecast.org/2014/09-sep/es/cuban-pollo-asado-Sep14-es.jpg",
name: "Pollo Asado",
description: "A description which may flow for several lines and give context to the content."
},
{
img: "http://amantesdelacocina.com/cocina/wp-content/uploads/2011/11/arepa2x.jpg",
name: "Arepa Rellena",
description: "A description which may flow for several lines and give context to the content."
},
{
img: "https://res.cloudinary.com/civico/image/upload/c_fill,f_auto,fl_lossy,h_500,q_auto,w_500/v1404245583/entity/image/file/003/000/53b3164db9dd5d13ca000003.jpg",
name: "Picada",
description: "A description which may flow for several lines and give context to the content."
},
{
img: "http://www.pidaloya.co/wp-content/uploads/2016/09/pechugapollo.jpg",
name: "Cerdo con papas a la francesa",
description: "A description which may flow for several lines and give context to the content."
},
{
img: "http://www.pidaloya.co/wp-content/uploads/2016/09/desgra.jpg",
name: "Mazorca desgranada",
description: "A description which may flow for several lines and give context to the content."
}
]
```
``` bash
# install dependencies
npm install
```
# Change IP Address
```js
Path: './config/config.js'
'use strict'
const config = {
ip: '192.168.1.66',
port: process.env.PORT || 3000
}
```
```js
Path: './views/js/main.js'
const url = {
ip: '192.168.1.67',
port: 3000
}
```
``` bash
# start project
npm run dev
```