Skip to content

marcingrzejszczak/AspNetCoreExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

Sample project

local

Pre-requisites

Build Application

From command line execute dotnet build

Run application

From command line execute dotnet run

Docker

Docker build

docker build -f src/AspNetCoreExample/Dockerfile .

Docker run - Production environment

docker run -p 80:80 <name of container>

Docker run - ContractTests environment

docker run -e "ASPNETCORE_ENVIRONMENT=ContractTests" -p 80:80 <name of container>

Swagger

http://localhost/swagger - swagger ui http://localhost/api-docs - redoc

Pipelines

Publish application

Publish process produces binaries of the application

dotnet restore

dotnet publich -c Release

Default output dir for this application: src/AspNetCoreExample/bin/Release/netcoreapp2.1/publish

Application name

For unpublished application

Beeing in project directory dotnet run --no-launch-profile appName

For published application

Beeing in publish directory

dotnet .\AspNetCoreExample.dll appName

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 61.4%
  • Shell 34.4%
  • Dockerfile 4.2%