Hydologic Micro Services (HMS) is a collection of services for retrieving hydrologic data and executing models that are accessible through a REST API. HMS is written in .NET Core 2 and developed using Visual Studio 2017.
Download or fork source from github. The Application is excuted from the Web.Services project. There are three methods for running the application:
All endpoints have been documented using swagger, implemented with swashbuckle which is a .NET Core 2 implementation of swagger. The swagger endpoint for local development can be found at "http://localhost:PORT/swagger", where the PORT is designated from Visual Studio 17 or the docker daemon (which can be found from the command line with "docker ps").
To use docker, docker needs to be installed for your development platform, download available here. Docker will require access to a shared drive and a network adapter that has internet access. Using Docker in Visual Studio will also need the docker support plugin.
The docker container and image for HMS can be build using either the CLI for docker or docker-compose. From Visual Studio, select docker-compose and set as Startup Project. Docker can now be an option for running the solution. Running with Docker will build from the dockerfile in Web.Services, which can be found here, and construct a docker container that will provide the same functionality as a web server. The same process can be done from the command line using 'docker' using the dockerfile or 'docker-compose'. Once the container is up and running, the endpoints will be accessible through the localhost and the port that was assigned to the docker container'.


Content type
Image
Digest
Size
406 MB
Last updated
over 4 years ago
docker pull dbsmith88/hms_dotnetcore