{"id":21045181,"url":"https://github.com/fullpipe/ngserve","last_synced_at":"2025-07-03T13:05:40.953Z","repository":{"id":71274264,"uuid":"316033903","full_name":"fullpipe/ngserve","owner":"fullpipe","description":"Simple and easy to use http server for angular 2+ apps.","archived":false,"fork":false,"pushed_at":"2022-03-10T14:39:08.000Z","size":438,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T22:12:18.798Z","etag":null,"topics":["angular","angular10","angular2","docker","http"],"latest_commit_sha":null,"homepage":"","language":"Go","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/fullpipe.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-11-25T19:21:52.000Z","updated_at":"2021-03-07T11:29:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"b836f4ee-151a-4aba-a573-49bde4cb84ee","html_url":"https://github.com/fullpipe/ngserve","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/fullpipe/ngserve","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullpipe%2Fngserve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullpipe%2Fngserve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullpipe%2Fngserve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullpipe%2Fngserve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fullpipe","download_url":"https://codeload.github.com/fullpipe/ngserve/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullpipe%2Fngserve/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263331769,"owners_count":23450155,"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":["angular","angular10","angular2","docker","http"],"created_at":"2024-11-19T14:20:25.485Z","updated_at":"2025-07-03T13:05:40.929Z","avatar_url":"https://github.com/fullpipe.png","language":"Go","readme":"# ngserve\n\n[![Tests Status](https://github.com/fullpipe/ngserve/workflows/Tests/badge.svg)](https://github.com/fullpipe/ngserve)\n[![Docker Image](https://img.shields.io/docker/image-size/fullpipe/ngserve/latest)](https://cloud.docker.com/repository/docker/fullpipe/ngserve)\n\nSimple and easy to use http server for angular 2+ apps.\n\n## Usage\n\nAdd `Dockerfile` to the root of your angular app project.\n\n```Dockerfile\n# Build\nFROM node:lts-alpine AS build\n\nWORKDIR /app\n\nCOPY package.json package-lock.json ./\nRUN npm install\n\nCOPY . .\n\nRUN npm run build --prod\n\n# App image\nFROM fullpipe/ngserve:latest\n\nCOPY --from=build /app/dist/example/ /app/\n```\n\nFirst stage will build your app. Second will copy `dist` to `ngserve` web root\ndirectory.\n\nOr if you build on your own\n\n```Dockerfile\nFROM fullpipe/ngserve:latest\n\n# Do not forget to add end-slashes to copy dir content\nCOPY dist/example/ /app/\n```\n\nNow you can build and run you app\n\n```bash\ndocker build -t example .\ndocker run -p 8080:8080 example\n```\n\n## Env vars\n\n- APP_ROOT, root path for your app. Default `/`. If you want for example\n  `/user/`. Set `APP_ROOT=/user/` and do not forget to change `deployUrl` in\n  `angular.json` to `/user`\n\n- NO_CACHE, disables in memory file cache. Default `false`\n- PORT, default 8080. Do not forget to `EXPOSE 123`, if changed\n\n## Example\n\nSee and try [example](https://github.com/fullpipe/ngserve/tree/main/example).\n\n```bash\ncd example\nnpm i\nnpm run build\ndocker-compose up --build\n```\n\nIt will create three different endpoints:\n\n- http://localhost:8080/\n- http://localhost:8081/\n- http://localhost:8082/\n\n## TODO:\n\n- benchmarks against nginx\n- logs?\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffullpipe%2Fngserve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffullpipe%2Fngserve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffullpipe%2Fngserve/lists"}