Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)