{"id":18812665,"url":"https://github.com/jsreport/jsreport-typescript-example","last_synced_at":"2025-04-13T21:25:24.224Z","repository":{"id":68709573,"uuid":"293860583","full_name":"jsreport/jsreport-typescript-example","owner":"jsreport","description":"Examples how to use typescript with jsreport","archived":false,"fork":false,"pushed_at":"2024-10-09T06:59:15.000Z","size":539,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-27T11:43:36.346Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://jsreport.net","language":"Handlebars","has_issues":true,"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/jsreport.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":"2020-09-08T16:03:19.000Z","updated_at":"2025-01-20T09:21:55.000Z","dependencies_parsed_at":"2023-09-24T08:55:15.184Z","dependency_job_id":null,"html_url":"https://github.com/jsreport/jsreport-typescript-example","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/jsreport%2Fjsreport-typescript-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsreport%2Fjsreport-typescript-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsreport%2Fjsreport-typescript-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsreport%2Fjsreport-typescript-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsreport","download_url":"https://codeload.github.com/jsreport/jsreport-typescript-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248783977,"owners_count":21161027,"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":[],"created_at":"2024-11-07T23:34:43.907Z","updated_at":"2025-04-13T21:25:24.217Z","avatar_url":"https://github.com/jsreport.png","language":"Handlebars","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# jsreport-typescript-example\n\nThis repository contains a set of examples of using typescript with jsreport.\nThe jsreport types are stored [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped) general repository and you will typically want to explicitly install them to your projects.  The most common are:\n\n[@types/jsreport](https://www.npmjs.com/package/@types/jsreport) - should contain types of all extensions delivered in the main jsreport distribution    \n[@types/jsreport-client](https://www.npmjs.com/package/@types/jsreport-client) - should contain types of all extensions delivered in the main jsreport distribution and types for the nodejs client\n\nYou can build the examples using the following commands. The commands for running examples are listed below.\n```\nnpm i\nnpm run watch\n```\n\n**The types don't cover 100% of jsreport yet. Please help us by contributing to the [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped).**\n\n## jsreport client example\n\nThis example stored in [src/client.ts](src/client.ts) creates an internal jsreport server for testing purpose and invokes rendering remotely using [nodejs jsreport client](https://jsreport.net/learn/nodejs-client).\n\nStart it using:\n```\nnpm run client\n```\n\n## jsreport server example\n\nThe most simple way how to start jsreport reporting server. See [src/server.ts](src/server.ts).\n\nStart it using the following command and reach the running server on port 5488\n```\nnpm run server\n```\n\n## jsreport and express integration example\n\nA standard nodejs express app with integrated jsreport running on the nested route. See [src/integrated.ts](src/integrated.ts).\n\nStart it using the following command and reach the running express app on http://localhost:3000\n```\nnpm run integrated\n```\n\n## jsreport stateless examples\n\njsreport can be used also in the stateless mode. This means you can specify fully the rendering request without using the template store.\nSee [src/stateless.ts](src/stateless.ts).\n\nStart it using the following command, it should write file out.pdf\n```\nnpm run stateless\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsreport%2Fjsreport-typescript-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsreport%2Fjsreport-typescript-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsreport%2Fjsreport-typescript-example/lists"}