{"id":26747127,"url":"https://github.com/hanchiang/typescript-node-docker","last_synced_at":"2026-04-09T23:04:32.971Z","repository":{"id":42098594,"uuid":"225096717","full_name":"hanchiang/typescript-node-docker","owner":"hanchiang","description":"A simple dockerised typescript koa server, ready to be developed and deployed","archived":false,"fork":false,"pushed_at":"2023-01-24T00:51:17.000Z","size":1175,"stargazers_count":0,"open_issues_count":16,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-06T01:08:51.126Z","etag":null,"topics":["docker","docker-compose","docker-multi-stage-build","koajs","mocha","nodejs","sinon","typescript"],"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/hanchiang.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":"2019-12-01T02:33:23.000Z","updated_at":"2019-12-01T03:26:51.000Z","dependencies_parsed_at":"2023-01-31T14:01:15.689Z","dependency_job_id":null,"html_url":"https://github.com/hanchiang/typescript-node-docker","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanchiang%2Ftypescript-node-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanchiang%2Ftypescript-node-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanchiang%2Ftypescript-node-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanchiang%2Ftypescript-node-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hanchiang","download_url":"https://codeload.github.com/hanchiang/typescript-node-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245999605,"owners_count":20707572,"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":["docker","docker-compose","docker-multi-stage-build","koajs","mocha","nodejs","sinon","typescript"],"created_at":"2025-03-28T09:17:05.460Z","updated_at":"2026-04-09T23:04:32.943Z","avatar_url":"https://github.com/hanchiang.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\nThis is a typescript koa project with the following features:\n* docker with multi stage build for development and production\n* docker compose for development\n* error handlers\n* tests with mocha and sinon\n* prettier\n* eslint\n\n# Setup\n## Install required tools\n* [docker setup](https://docs.docker.com/install/)\n* [docker-compose setup](https://docs.docker.com/compose/install/)\n\n## Clone project\n* `git clone git@github.com:hanchiang/typescript-node-docker.git`\n\n## Set up environment variables\n`.env.dev`:\n* `COOKIE_SECRET=mycookiesecret`\n* `NODE_ENV=development`\n\n# Using the project\n**Run in development mode**\n* Build: `docker-compose build`\n* Start: `docker-compose up -d`\n* Server is available at: `localhost:3000`\n* Stop: `docker-compose down`\n\n**Build production image**\n* `npm run docker-build-prod`\n\n# Note\nWhenever new packages are added via `npm install`:\n* You need to stop the service: `docker-compose stop \u003cservice\u003e` or `docker-compose down`\n* Build the service: `docker-compose build \u003cservice\u003e`\n* Start the service: `docker-compose start \u003cservice\u003e` or `docker-compose up -d`\n\n# Reference\n* Multi stage docker build - https://medium.com/@ankit.wal/the-why-and-how-of-multi-stage-docker-build-with-typescript-example-bcadbce2686c","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanchiang%2Ftypescript-node-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanchiang%2Ftypescript-node-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanchiang%2Ftypescript-node-docker/lists"}