{"id":16727860,"url":"https://github.com/mattmess1221/nginx-fastapi-vue-docker","last_synced_at":"2025-04-10T11:00:20.532Z","repository":{"id":78014443,"uuid":"445714762","full_name":"mattmess1221/nginx-fastapi-vue-docker","owner":"mattmess1221","description":"Example project using nginx-unit, fastapi and vue.js, all in one docker image","archived":false,"fork":false,"pushed_at":"2023-09-29T23:34:09.000Z","size":234,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-24T09:47:09.889Z","etag":null,"topics":["docker","fastapi","nginx-unit","vue"],"latest_commit_sha":null,"homepage":"","language":"Vue","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/mattmess1221.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":"2022-01-08T03:34:06.000Z","updated_at":"2025-02-23T18:23:36.000Z","dependencies_parsed_at":"2024-10-12T23:08:02.244Z","dependency_job_id":"fd3b072c-1475-4aeb-9b9b-b7614feae8a5","html_url":"https://github.com/mattmess1221/nginx-fastapi-vue-docker","commit_stats":null,"previous_names":["mattmess1221/nginx-fastapi-vue-docker","killjoy1221/nginx-fastapi-vue-docker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmess1221%2Fnginx-fastapi-vue-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmess1221%2Fnginx-fastapi-vue-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmess1221%2Fnginx-fastapi-vue-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattmess1221%2Fnginx-fastapi-vue-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattmess1221","download_url":"https://codeload.github.com/mattmess1221/nginx-fastapi-vue-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248206831,"owners_count":21065188,"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","fastapi","nginx-unit","vue"],"created_at":"2024-10-12T23:07:32.888Z","updated_at":"2025-04-10T11:00:20.472Z","avatar_url":"https://github.com/mattmess1221.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nginx-fastapi-vue-docker\n\nExample application for running a web application with [Vue.js](https://vuejs.org/)\nas a frontend and [FastAPI](https://fastapi.tiangolo.com/) as a backend using nginx\nin a single docker image and container.\n\nTo allow for a single image, [nginx unit](https://unit.nginx.org/) is used to\npass requests directly to the asgi application.\n\n## Development\n\nThe `backend` folder contains a [Python Poetry](https://python-poetry.org/) project\nusing the FastAPI framework. Use the following commands to start developing.\n\n```shell\ncd backend\npoetry install\npoetry run uvicorn app:app --debug --reload\n```\n\nThe `frontend` folder contains a [Pnpm](https://pnpm.io/) project using the\nVue.js framework. Use the following commands to start developing.\n\n```shell\ncd frontend\npnpm install\npnpm dev\n```\n\nAfter both the frontend and backend are up, you can visit http://localhost:8080/ to\nview the app.\n\n## Configuration\nTo configure nginx-unit, modify the `docker/config.json` file using the provided\n[guide](https://unit.nginx.org/configuration/).\n\n## Building\nThe docker build takes advantage of multi-stage builds, so docker 17.05+ is needed.\n\nTo build, simply run\n```shell\ndocker build . -t nginx-fastapi-vue-docker\n```\n\nThen to run, use \n```shell\ndocker run --rm -p 80:80 nginx-fastapi-vue-docker\n```\n\nYou now be able to open http://localhost/ and see your application.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattmess1221%2Fnginx-fastapi-vue-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattmess1221%2Fnginx-fastapi-vue-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattmess1221%2Fnginx-fastapi-vue-docker/lists"}