{"id":19977103,"url":"https://github.com/adrianhajdin/tutorial_pdf_generation","last_synced_at":"2025-05-04T03:30:38.786Z","repository":{"id":45748371,"uuid":"167786481","full_name":"adrianhajdin/tutorial_pdf_generation","owner":"adrianhajdin","description":"This is a code repository for the corresponding article on Medium.  In this tutorial, you will learn how to generate dynamic PDFs using HTML code as a template.","archived":false,"fork":false,"pushed_at":"2019-04-05T20:44:42.000Z","size":197,"stargazers_count":123,"open_issues_count":2,"forks_count":86,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-08T02:43:14.552Z","etag":null,"topics":["article","tutorial-code"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adrianhajdin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-27T08:25:05.000Z","updated_at":"2024-11-29T23:31:15.000Z","dependencies_parsed_at":"2022-09-11T05:01:41.498Z","dependency_job_id":null,"html_url":"https://github.com/adrianhajdin/tutorial_pdf_generation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianhajdin%2Ftutorial_pdf_generation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianhajdin%2Ftutorial_pdf_generation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianhajdin%2Ftutorial_pdf_generation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrianhajdin%2Ftutorial_pdf_generation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adrianhajdin","download_url":"https://codeload.github.com/adrianhajdin/tutorial_pdf_generation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252283532,"owners_count":21723491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["article","tutorial-code"],"created_at":"2024-11-13T03:26:50.642Z","updated_at":"2025-05-04T03:30:37.840Z","avatar_url":"https://github.com/adrianhajdin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Generate Dynamic PDFs Using React and NodeJS\n\n## Currency Converter Tutorial\n\nThis is a code repository for the corresponding [article](https://medium.freecodecamp.org/how-to-generate-dynamic-pdfs-using-react-and-nodejs-eac9e9cb4dde) on Medium.\n\nIn this tutorial, you will learn how to generate dynamic PDFs using HTML code as a template.\n\n## Project Setup\n\n1. Create a new directory\n```mkdir pdfGenerator \u0026\u0026 cd pdfGenerator```\n2. Create a new React App with ```create-react-app client``` and then move into newly created directory and install dependencies ```cd client \u0026\u0026 npm i -S axios file-saver```\n3. Create an Express server with ```mkdir server \u0026\u0026 cd server \u0026\u0026 touch index.js \u0026\u0026 npm init``` press enter a couple of times to initialize package.json and then run ```npm i -S express body-parser cors html-pdf ``` to save all the necessary dependencies.\n4. Add proxy inside of client/package.json, above the dependencies, simply add ```“proxy”: “http://localhost:5000/\"```, so you can call the localhost from the client.\n5. Open two different terminals:\nFirst one: go into the client directory and ```run npm start```\nSecond one: go into the server directory and ```run nodemon index.js```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianhajdin%2Ftutorial_pdf_generation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrianhajdin%2Ftutorial_pdf_generation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianhajdin%2Ftutorial_pdf_generation/lists"}