{"id":17854781,"url":"https://github.com/mathiaskandelborg/custom-server-typescript-app","last_synced_at":"2025-04-02T17:25:03.032Z","repository":{"id":117350260,"uuid":"154526405","full_name":"MathiasKandelborg/custom-server-typescript-app","owner":"MathiasKandelborg","description":null,"archived":false,"fork":false,"pushed_at":"2018-11-15T16:24:16.000Z","size":164,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T08:12:39.149Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/MathiasKandelborg.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":"2018-10-24T15:38:20.000Z","updated_at":"2019-04-11T00:28:34.000Z","dependencies_parsed_at":"2023-04-17T20:32:46.631Z","dependency_job_id":null,"html_url":"https://github.com/MathiasKandelborg/custom-server-typescript-app","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/MathiasKandelborg%2Fcustom-server-typescript-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathiasKandelborg%2Fcustom-server-typescript-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathiasKandelborg%2Fcustom-server-typescript-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathiasKandelborg%2Fcustom-server-typescript-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MathiasKandelborg","download_url":"https://codeload.github.com/MathiasKandelborg/custom-server-typescript-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246858108,"owners_count":20845242,"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-10-28T01:22:30.099Z","updated_at":"2025-04-02T17:25:03.006Z","avatar_url":"https://github.com/MathiasKandelborg.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Deploy to now](https://deploy.now.sh/static/button.svg)](https://deploy.now.sh/?repo=https://github.com/zeit/next.js/tree/master/examples/custom-server-typescript)\n\n# Custom server with TypeScript + Nodemon example\n\n## How to use\n\n### Using `create-next-app`\n\nExecute [`create-next-app`](https://github.com/segmentio/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:\n\n```bash\nnpx create-next-app --example custom-server-typescript custom-server-typescript-app\n# or\nyarn create next-app --example custom-server-typescript custom-server-typescript-app\n```\n\n### Download manually\n\nDownload the example:\n\n```bash\ncurl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/custom-server-typescript\ncd custom-server-typescript\n```\n\nInstall it and run:\n\n```bash\nnpm install\nnpm run dev\n# or\nyarn\nyarn dev\n```\n\nDeploy it to the cloud with [now](https://zeit.co/now) ([download](https://zeit.co/download))\n\n```bash\nnow\n```\n\n## The idea behind the example\n\nThe example shows how you can use [TypeScript](https://typescriptlang.com) on both the server and the client while using [Nodemon](https://nodemon.io/) to live reload the server code without affecting the Next.js universal code.\nServer entry point is `server/index.ts` in development and `production-server/index.js` in production.\nThe second directory should be added to `.gitignore`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathiaskandelborg%2Fcustom-server-typescript-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathiaskandelborg%2Fcustom-server-typescript-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathiaskandelborg%2Fcustom-server-typescript-app/lists"}