https://github.com/raschmitt/net-core-docker-sample
Sample .Net Core API, with SQL Server Database, containerized with Docker and ready to play with.
https://github.com/raschmitt/net-core-docker-sample
api azure-devops docker docker-compose docker-sample dotnet hacktoberfest k8s netcore pipelines sql-server
Last synced: 2 months ago
JSON representation
Sample .Net Core API, with SQL Server Database, containerized with Docker and ready to play with.
- Host: GitHub
- URL: https://github.com/raschmitt/net-core-docker-sample
- Owner: raschmitt
- License: mit
- Created: 2020-09-30T04:07:13.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-26T00:27:18.000Z (over 3 years ago)
- Last Synced: 2025-01-08T18:16:46.468Z (4 months ago)
- Topics: api, azure-devops, docker, docker-compose, docker-sample, dotnet, hacktoberfest, k8s, netcore, pipelines, sql-server
- Language: C#
- Homepage: https://net-core-docker-sample-service-raschmitt.cloud.okteto.net/swagger
- Size: 4.56 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# .Net Core - Docker Sample
[](https://dev.azure.com/raschmitt/raschmitt/_build?definitionId=26)
[](https://dev.azure.com/raschmitt/raschmitt/_build?definitionId=26)
[](https://sonarcloud.io/dashboard?id=raschmitt_net-core-docker-sample)
[](https://dashboard.stryker-mutator.io/reports/github.com/raschmitt/net-core-docker-sample/master)
[](https://hub.docker.com/repository/docker/raschmitt/net-core-docker-sample)Sample .Net Core API, with SQL Server Database, containerized with Docker and ready to use.
## Dependencies
- [Docker](https://docs.docker.com/get-docker/)
## Live preview [](https://net-core-docker-sample-service-raschmitt.cloud.okteto.net/health)
A live preview of this API can be found [here](https://net-core-docker-sample-service-raschmitt.cloud.okteto.net/swagger/index.html).
## How to run locally
- ### Running the API
1. After cloning this repository go into the `src` directory and run `docker-compose up`.
2. Access [http://localhost:8080/swagger](http://localhost/swagger) and you are good to start playing with this API.
- ### Connecting to the container's database
If you wish to connect to the container's database you can do so with the following credentials:
| Parameter | Value |
| :---: | :---: |
| Server name | 127.0.0.1,1433 |
| Login | sa |
| Paswword | sa@@2020 |## How to debug
- [Visual Studio](https://docs.microsoft.com/en-us/visualstudio/containers/edit-and-refresh?view=vs-2019)
- [Visual Studio Code](https://code.visualstudio.com/docs/containers/debug-netcore)
- [Rider](https://blog.jetbrains.com/dotnet/2018/07/18/debugging-asp-net-core-apps-local-docker-container/)
## ContributionsContributions and feature requests are always welcome.