{"id":20138537,"url":"https://github.com/thiagobarradas/dotnet-core-webapi-with-docker-demo","last_synced_at":"2025-04-09T18:08:48.898Z","repository":{"id":48430350,"uuid":"95275774","full_name":"ThiagoBarradas/dotnet-core-webapi-with-docker-demo","owner":"ThiagoBarradas","description":"ASP.NET Core Web API Demo with Docker, Nancy and Kestrel.","archived":false,"fork":false,"pushed_at":"2022-08-03T19:56:57.000Z","size":17,"stargazers_count":3,"open_issues_count":3,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T20:05:42.240Z","etag":null,"topics":["api","appveyor","demo","docker","dotnet","dotnetcore","kestrel","nancy","webapi"],"latest_commit_sha":null,"homepage":"","language":"C#","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/ThiagoBarradas.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":"2017-06-24T04:31:36.000Z","updated_at":"2025-02-02T22:02:02.000Z","dependencies_parsed_at":"2022-09-07T16:41:10.441Z","dependency_job_id":null,"html_url":"https://github.com/ThiagoBarradas/dotnet-core-webapi-with-docker-demo","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/ThiagoBarradas%2Fdotnet-core-webapi-with-docker-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThiagoBarradas%2Fdotnet-core-webapi-with-docker-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThiagoBarradas%2Fdotnet-core-webapi-with-docker-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThiagoBarradas%2Fdotnet-core-webapi-with-docker-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThiagoBarradas","download_url":"https://codeload.github.com/ThiagoBarradas/dotnet-core-webapi-with-docker-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248084914,"owners_count":21045135,"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":["api","appveyor","demo","docker","dotnet","dotnetcore","kestrel","nancy","webapi"],"created_at":"2024-11-13T21:38:38.035Z","updated_at":"2025-04-09T18:08:48.869Z","avatar_url":"https://github.com/ThiagoBarradas.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DotNetCore.WebApi.Docker.Demo\n\n[ASP.NET Core](https://www.microsoft.com/net/core \"ASP.NET Core\") Web API Demo with [Docker](https://docs.docker.com/ \"Docker\"), [Nancy](http://nancyfx.org/ \"Nancy\") and [Kestrel](https://github.com/aspnet/KestrelHttpServer \"Kestrel\").\n\n# How to run project? \n\nFirst head into the `DotNetCore.WebApi.Docker.Demo` folder and then build a release version with the following commands.\n```sh\ncd DotNetCore.WebApi.Docker.Demo\ndotnet build --configuration Release\n```\n\nAfter that, head back in the root of the project, then start running with docker (your terminal must be in same directory that the DockerFile):\n\n```\ncd ..\ndocker build -t dotnetapidemo . --no-cache\ndocker run -t -p 1234:5000 dotnetapidemo\n```\n\nFirst line builds app and sets image name to *dotnetapidemo* (you can change). The next line run app in a container exposing your port 5000 in port 1234 (you can change too).\n\nTo check if app is running, access `http://localhost:1234/test`. You should see something like:\n\n```\n{\"message\":\"This is a simple test\"}\n```\n\n# Build Status\n\n[![Build status](https://ci.appveyor.com/api/projects/status/4wrul3qj9iyv0pwh?svg=true)](https://ci.appveyor.com/project/ThiagoBarradas/dotnetcore-webapi-docker-demo)\n\n# Author\n\n[Thiago Barradas](https://www.linkedin.com/in/thiagobarradas \"Linkedin\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagobarradas%2Fdotnet-core-webapi-with-docker-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthiagobarradas%2Fdotnet-core-webapi-with-docker-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthiagobarradas%2Fdotnet-core-webapi-with-docker-demo/lists"}