This Project contains an easy C# http Server Reference to Benjamin N. Summerton. This service only counts visits and provide a "shutdown" button. Code is only in Program.cs.
- Open Terminal
- use cd to change to the folder containing this project
cd Path/To/Folder
- use Dotnet CLI to run Project
dotnet run
- You should get message :
Listening for connections on http://localhost:8000/
- Open Browser and navigate to http://localhost:8000/
- Open Terminal
- use cd to change to the folder containing this project
cd Path/To/Folder
- use docker build to build the image in place
docker build -plainhttp -f Dockerfile/Dockerfile .
- Use docker run to run the image. Forward containerPort 8000 to hostport 8000.
`docker run -p 8000:8000 plainhttp
- You should get message :
Listening for connections on http://localhost:8000/
- Open Browser and navigate to http://localhost:8000/