{"id":21288778,"url":"https://github.com/railwayapp-templates/angular-starter","last_synced_at":"2025-03-15T15:42:46.808Z","repository":{"id":191931275,"uuid":"685663524","full_name":"railwayapp-templates/angular-starter","owner":"railwayapp-templates","description":"One-click default Angular TS starter, utilizing Caddy to serve!","archived":false,"fork":false,"pushed_at":"2025-02-28T14:34:19.000Z","size":579,"stargazers_count":1,"open_issues_count":0,"forks_count":9,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T03:37:54.573Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/railwayapp-templates.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":"2023-08-31T18:17:24.000Z","updated_at":"2025-02-28T14:34:23.000Z","dependencies_parsed_at":"2024-11-21T12:39:11.276Z","dependency_job_id":null,"html_url":"https://github.com/railwayapp-templates/angular-starter","commit_stats":null,"previous_names":["railwayapp-templates/angular-starter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railwayapp-templates%2Fangular-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railwayapp-templates%2Fangular-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railwayapp-templates%2Fangular-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/railwayapp-templates%2Fangular-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/railwayapp-templates","download_url":"https://codeload.github.com/railwayapp-templates/angular-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243753995,"owners_count":20342537,"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-21T12:24:25.689Z","updated_at":"2025-03-15T15:42:46.795Z","avatar_url":"https://github.com/railwayapp-templates.png","language":"HTML","funding_links":[],"categories":["Angular"],"sub_categories":["Deployment"],"readme":"---\ntitle: Angular + TypeScript + Caddy\ndescription: The default Angular TS starter, utilizing `Caddy` to serve the built single page app\ntags:\n  - Node\n  - Angular 19\n  - TypeScript\n  - Caddy\n---\n\n# Angular + TypeScript + Caddy\n\nThis project was originally generated with [`ng new my-app`](https://angular.dev/tools/cli/setup-local#create-a-workspace-and-initial-application)\n\n[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/13NBfA?referralCode=brody)\n\n## ✨ Features\n\n- Angular 19 + TypeScript + Caddy\n- Caddy v2\n\n## 💁‍♀️ Local Development\n\n- Install required dependencies with `npm install`\n- Run `npm run dev` for a dev server\n- Navigate to `http://127.0.0.1:4200/`. The application will automatically reload if you change any of the source files.\n\nTo get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.\n\n## ❓ Why use `Caddy` when deploying to Railway?\n\nCaddy is a powerful, enterprise-ready, open source web server, and therefore Caddy is far better suited to serve websites than `ng serve` is, using Caddy will result in much less memory and cpu usage compared to serving with `ng serve` (much lower running costs too)\n\nTo see how this is achieved with nixpacks, check out the fully documented nixpacks.toml file in this repository\n\nThe configuration for Caddy is called a Caddyfile, and you can edit that file to further suite your needs, by default it comes configured to serve a single page app for Angular, and to also gzip the responses\n\n**Relevant Caddy documentation:**\n\n- [The Caddyfile](https://caddyserver.com/docs/caddyfile)\n- [Caddyfile Directives](https://caddyserver.com/docs/caddyfile/directives)\n- [root](https://caddyserver.com/docs/caddyfile/directives/root)\n- [encode](https://caddyserver.com/docs/caddyfile/directives/encode)\n- [file_server](https://caddyserver.com/docs/caddyfile/directives/file_server)\n- [try_files](https://caddyserver.com/docs/caddyfile/directives/try_files)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frailwayapp-templates%2Fangular-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frailwayapp-templates%2Fangular-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frailwayapp-templates%2Fangular-starter/lists"}