{"id":19697161,"url":"https://github.com/janit/koa-ts-boilerplate","last_synced_at":"2025-04-29T11:32:24.399Z","repository":{"id":42108322,"uuid":"109591614","full_name":"janit/koa-ts-boilerplate","owner":"janit","description":"Boilerplate for Koa, TypeScript and React for server side templating","archived":false,"fork":false,"pushed_at":"2024-09-11T21:37:37.000Z","size":40,"stargazers_count":11,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-26T04:25:33.868Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/janit.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":"2017-11-05T15:30:48.000Z","updated_at":"2025-01-15T16:45:34.000Z","dependencies_parsed_at":"2022-08-12T06:12:45.235Z","dependency_job_id":null,"html_url":"https://github.com/janit/koa-ts-boilerplate","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/janit%2Fkoa-ts-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janit%2Fkoa-ts-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janit%2Fkoa-ts-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janit%2Fkoa-ts-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janit","download_url":"https://codeload.github.com/janit/koa-ts-boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251494110,"owners_count":21598236,"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-11T19:37:23.016Z","updated_at":"2025-04-29T11:32:23.326Z","avatar_url":"https://github.com/janit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Boilerplate for Koa, TypeScript and React for server side templating\n\nA simple boilerplate that integrates the [Koa framework](http://koajs.com) with [TypeScript](http://www.typescriptlang.org) and [React.js for templating](https://medium.com/@velmu/react-is-gaining-ground-as-a-universal-server-side-templating-system-26fe02eebe12).\n\nNote that this is not pushing React for the front end, but purely for a back end templating. If you want something universal that runs the same code on the server and the browser, you can take a look at [Next.js](https://github.com/zeit/next.js/) or other similar solutions. A good place to start is reading about [Building Decoupled Sites and Apps with GraphQL and Next.js](https://malloc.fi/building-decoupled-sites-and-apps-with-graphql-and-next-js).\n\nI might use this in the future, so it's mostly a personal backup. No warranty whatsoever.\n\n## Installation\n\nIf you want to try it for development, first install [Nodemon](https://nodemon.io/), [ts-node](https://github.com/TypeStrong/ts-node) and [Yarn](https://yarnpkg.com/).\n\nInstall dependencies from NPM with yarn and then run nodemon (which in turn restarts ts-node on changes):\n\n```\n$ yarn\n$ yarn run dev\n```\n\n### Production\n\nFor production environments you need to first compile the TypeScript source to JavaScript (to `build/`) and then run the app:\n\n```\n$ yarn run build\n$ yarn run start\n```\n\nNote: Please note that when running in production, the environment variable `NODE_ENV` should be set to `production` as this improves [the performance of Server Side Rendered React.js](https://malloc.fi/performance-cost-of-server-side-rendered-react-node-js) significantly.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanit%2Fkoa-ts-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanit%2Fkoa-ts-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanit%2Fkoa-ts-boilerplate/lists"}