Build a REST API with .NET Core 2 and run it on Docker Linux ... | .net core web api docker container
Codebelow canbefoundinGitHub SampleDotNetCore2RestStub[1] repository.Inthecurrentpostisshownasampleapplicationthatcanbeaverygoodfoundationforarealproductionapplication.ThisprojectcanbeeasilyusedasatemplateforrealAPIservice.MicrosoftandopensourceIwasdoingJavaforabout2yearsandgotbackto.NETsixmonthsago.Recentlywehadtodoaprojectin.NETCore2.0,atechnologyIhaven’theardofbefore. IwastrulyamazedhowmuchopensourceMicrosofthadbegun..NETnowcanbedevelopedandevenrunonLinux.Thisdefinitelymakesitreallycompet...
Code below can be found in GitHub SampleDotNetCore2RestStub[1] repository. In the current post is shown a sample application that can be a very good foundation for a real production application. This project can be easily used as a template for real API service.
Microsoft and open sourceI was doing Java for about 2 years and got back to .NET six months ago. Recently we had to do a project in .NET Core 2.0, a technology I haven’t heard of before. I was truly amazed how much open source Microsoft had begun. .NET now can be developed and even run on Linux. This definitely makes it really competitive to Java which advantage was multi-platform ability. Another benefit is that documentation is very extensive and there is a huge community out there that makes solving issues really fast and easy.
.NET CoreIn short .NET Core is a cross-platform development platform supporting Windows, macOS, and Linux, and can be used in device, cloud, and embedded/IoT scenarios. It is maint...