{"id":20063848,"url":"https://github.com/tough-dev-school/diploma-generator","last_synced_at":"2025-05-05T17:33:22.577Z","repository":{"id":43148406,"uuid":"405983515","full_name":"tough-dev-school/diploma-generator","owner":"tough-dev-school","description":"Generating student certificates out of SVG templates","archived":false,"fork":false,"pushed_at":"2025-02-21T10:57:44.000Z","size":51176,"stargazers_count":14,"open_issues_count":3,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-09T02:12:44.126Z","etag":null,"topics":["express","nodejs","puppeteer"],"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/tough-dev-school.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-13T13:24:15.000Z","updated_at":"2025-03-14T14:48:53.000Z","dependencies_parsed_at":"2022-07-22T00:30:02.713Z","dependency_job_id":"5fc063bb-6601-481f-b5e2-469f58bcdf7d","html_url":"https://github.com/tough-dev-school/diploma-generator","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/tough-dev-school%2Fdiploma-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tough-dev-school%2Fdiploma-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tough-dev-school%2Fdiploma-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tough-dev-school%2Fdiploma-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tough-dev-school","download_url":"https://codeload.github.com/tough-dev-school/diploma-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252542520,"owners_count":21764984,"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":["express","nodejs","puppeteer"],"created_at":"2024-11-13T13:43:58.948Z","updated_at":"2025-05-05T17:33:17.566Z","avatar_url":"https://github.com/tough-dev-school.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Diploma generator\n\nRender bundled SVG templates to PNG images, return them by HTTP, using\nGET query string as template context.\n\n## Installation\n\n```sh\n$ npm ci\n$ npm run dev\n```\n\n## Usage\n\n```sh\n$ http GET http://\u003cservice.url\u003e/homework-template.png?name=Константин Константинопольской\u0026sex=m Authorzation:\"Bearer: \u003cYOUR-SECRET-TOKEN\u003e\n```\n\n## CI and Delivery\n\nThis services gets automatically deployed to heroku upon push to the master. The docker image is built on [heroku's premises](https://devcenter.heroku.com/articles/build-docker-images-heroku-yml)\n\n## How to create a new template\n\nFirst, you have to create and svg image out of the mock-up. Here is an example using figma:\n![Create an SVG using figma](https://user-images.githubusercontent.com/1592663/133264066-411ad45a-d4f4-4c18-a353-377a9c57a386.png)\n\nSecond, convert it tu utf-8. for text to become readable by a human. In MacOS or Linux: `xmllint --format --encode utf-8 downloaded.svg \u003e downloaded-readble.svg`\n.\n\nThird, create a text template out of the SVG, using nonjucks [variable substitution](https://mozilla.github.io/nunjucks/templating.html#variables) and [condigitional tags](https://mozilla.github.io/nunjucks/templating.html#if). Place the resulting file to the templates/ folder and voila!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftough-dev-school%2Fdiploma-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftough-dev-school%2Fdiploma-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftough-dev-school%2Fdiploma-generator/lists"}