Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nhatthaiquang-agilityio/dotnet-webapi-example
Web API sample for dot net
https://github.com/nhatthaiquang-agilityio/dotnet-webapi-example
asp-net docker docker-compose dot-net mongodb
Last synced: about 1 month ago
JSON representation
Web API sample for dot net
- Host: GitHub
- URL: https://github.com/nhatthaiquang-agilityio/dotnet-webapi-example
- Owner: nhatthaiquang-agilityio
- Created: 2019-05-14T03:31:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-08T08:07:28.000Z (almost 2 years ago)
- Last Synced: 2024-04-16T07:09:38.859Z (9 months ago)
- Topics: asp-net, docker, docker-compose, dot-net, mongodb
- Language: C#
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dotnet-webapi-example
ASP.NET Core API Server that uses MongoDB in the backend### Requirement
----------------
+ Using Docker & Docker Compose
+ NET CORE SDK 2.1
+ ASPNET RUNTIME 2.1
+ MongoDB### Usage
----------Build image
```
cd backend
docker build --pull -t aspnetwebapi .
```Run image
```
docker run --name webapp --rm -it -p 5000:80 aspnetwebapi
```Check api
```
Method GET http://localhost:5000/api/products
```### Reference
--------------
+ [Example AspNetCore](https://github.com/aspnet/AspNetCore.Docs/blob/master/aspnetcore/web-api/index/samples/2.x)
+ [Docker+ MongoDB + .NETCore](https://medium.com/@kristaps.strals/docker-mongodb-net-core-a-good-time-e21f1acb4b7b)