Skip to content

jmbl1685/html-to-pdf-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate PDF through the HTML content.

Screenshots

  • html-pdf
  • node-fetch
  • requestify
  • izitoast

DATA EXAMPLE

[
  {
    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."
  }
]
# install dependencies
npm install

Change IP Address

Path: './config/config.js'

'use strict'

const config = {
    ip: '192.168.1.66',
    port: process.env.PORT || 3000
}
Path: './views/js/main.js'

const url = {
    ip: '192.168.1.67',
    port: 3000
}
# start project
npm run dev

About

📝 Generate PDF through the HTML content. (Node.js + Express.js)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published