{"id":18702036,"url":"https://github.com/recuencojones/caddy-frontend","last_synced_at":"2026-04-16T14:07:58.275Z","repository":{"id":39300882,"uuid":"225715116","full_name":"RecuencoJones/caddy-frontend","owner":"RecuencoJones","description":"Deploy frontend application with Caddy","archived":false,"fork":false,"pushed_at":"2023-01-01T14:04:51.000Z","size":1782,"stargazers_count":2,"open_issues_count":23,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T05:42:09.327Z","etag":null,"topics":["caddy","kubesail","vue","webpack"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/RecuencoJones.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-03T21:02:45.000Z","updated_at":"2022-04-23T15:52:00.000Z","dependencies_parsed_at":"2023-01-31T22:55:11.621Z","dependency_job_id":null,"html_url":"https://github.com/RecuencoJones/caddy-frontend","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/RecuencoJones%2Fcaddy-frontend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecuencoJones%2Fcaddy-frontend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecuencoJones%2Fcaddy-frontend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecuencoJones%2Fcaddy-frontend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RecuencoJones","download_url":"https://codeload.github.com/RecuencoJones/caddy-frontend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239565644,"owners_count":19660154,"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":["caddy","kubesail","vue","webpack"],"created_at":"2024-11-07T11:43:16.945Z","updated_at":"2026-04-16T14:07:53.241Z","avatar_url":"https://github.com/RecuencoJones.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Caddy as nginx alternative for frontend\n\n[Caddy](https://caddyserver.com/) is a simple http server written in go.\n\nIn most of our frontend deployments we end up using nginx to serve static files (i.e, SPA applications).\nThere's a lot of good things in nginx, however we thrive simpler configurations with superpowers.\n\nCaddy provides a lot of useful features:\n- Simple reverse-proxy syntax\n- Access to environment variables\n- HTTP/2 and QUIC\n- Https by default (although we won't use it directly)\n\n## Run the example\n\n### Bff (backend for frontend)\n\n```\ncd bff\nnpm install\nnode index.js\n```\n\n### Static\n\n```\ncd frontend-static\ncaddy -envfile .env.example -port 8080\n```\n\nOpen [localhost:8080](http://localhost:8080)\n\n### Webpack\n\n```\ncd frontend-webpack\nnpm install\nnpm run build\ncaddy -envfile .env.example -port 8080\n```\n\nor\n\n```\ncd frontend-webpack\ncp .env.example .env\nnpm install\nnpm start\n```\n\nOpen [localhost:8080](http://localhost:8080)\n\n## Run the example with docker-compose\n\n```\ndocker-compose up --build --force-recreate\n```\n\nOpen [localhost:8080](http://localhost:8080) and [localhost:8081](http://localhost:8081)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecuencojones%2Fcaddy-frontend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frecuencojones%2Fcaddy-frontend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecuencojones%2Fcaddy-frontend/lists"}