Fun project for learning asp.net core built for containers.
- Install .NET Core SDK 2.1 Currently: https://www.microsoft.com/net/download/thank-you/dotnet-sdk-2.1.402-windows-x64-installer
- Configure Powershell to allow script execution:
- set-executionpolicy remotesigned
- get-executionpolicy
- Visual Studio Code Setup (Or your editor flavor of choice)
- Extensions:
- Powershell
- C#
- Docker (Installed with Code)
- NuGet Package Manager
- Update Visual Studio Code Preferences
- Find the omnisharp.path property and add it to your user settings and configure it as follows:
- "omnisharp.path": "latest"
- Find the omnisharp.path property and add it to your user settings and configure it as follows:
- Extensions:
- Clone this REPO in Visual Studio Code
- Create a container to build the .netcore application and optionally run a local test of the app. Can be skipped because we will be running the application in a container.
- .\scripts\build.ci.ps1
- Test (Optional)
- dotnet run --project .\src\webui\webui.csproj
- Navigate to http://localhost:5000
- Ctrl - C
- Create a container to run your webui and a container to run the db
- .\scripts\build.ps1
- Run the webui container and the db container
- .\scripts\run.ps1
- Test your container application
- Navigate to http://localhost:5000