{"id":21165997,"url":"https://github.com/peterdee/pdf-view","last_synced_at":"2025-03-14T16:45:31.205Z","repository":{"id":103803838,"uuid":"347469726","full_name":"peterdee/pdf-view","owner":"peterdee","description":"A demonstration of how the react-pdf should work with CRA-generated application","archived":false,"fork":false,"pushed_at":"2021-03-13T20:40:16.000Z","size":459,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-01-21T10:11:15.497Z","etag":null,"topics":["create-react-app","express","react","react-pdf"],"latest_commit_sha":null,"homepage":"http://localhost:3000","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peterdee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-13T20:16:24.000Z","updated_at":"2021-03-13T20:40:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"d5ad4333-f54d-4889-a1be-355e08cc6864","html_url":"https://github.com/peterdee/pdf-view","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/peterdee%2Fpdf-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterdee%2Fpdf-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterdee%2Fpdf-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterdee%2Fpdf-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterdee","download_url":"https://codeload.github.com/peterdee/pdf-view/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243615336,"owners_count":20319726,"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":["create-react-app","express","react","react-pdf"],"created_at":"2024-11-20T14:47:51.154Z","updated_at":"2025-03-14T16:45:31.181Z","avatar_url":"https://github.com/peterdee.png","language":"JavaScript","readme":"## Viewing PDF files with React\n\nA demonstration of how the `react-pdf` should work with CRA-generated application.\n\nStack: React, React-PDF.\n\n### Deploy\n\n```shell script\ngit clone https://github.com/peterdee/pdf-view\ncd ./pdf-view\nnvm use 14\nnpm i -g yarn\nyarn\n```\n\n### Modules locking\n\nModule versions are locked.\n\nThis is necessary only for the `react-pdf` though, as the contents of `worker.js` in the `public` directory was copied from the `pdfjs-dist/build/pdf.worker.min.js` file.\n\n### Launch\n\n```shell script\nyarn start\n```\n\nApplication is available at http://localhost:3000\n\n### Build\n\n```shell script\nyarn build\n```\n\nThe `public` directory contains a `worker.js` file that should be copied to the `build` folder, otherwise `react-pdf` will not work properly when static files are created.\n\n### Serve static\n\n```shell script\nyarn serve\n```\n\nStatic files are served with `express` on http://localhost:5500\n\n### LICENSE\n\n[MIT](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterdee%2Fpdf-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterdee%2Fpdf-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterdee%2Fpdf-view/lists"}