This page is a work in progress.You can help improve it. →

Back-End Setup

.NET

In order to create and run applications written in the C# language and the .NET Core environment we need to install some tools on our computer. The tool we need to download is called a Software Development Kit, or SDK for short. Microsoft provides a download to install and configure the .NET Core SDK for us.

Installation

brew install --cask dotnet-sdk

Post Installation

We will need a few tools along the way so we will make sure they are installed now:

.NET EF Core

In a Terminal window:

dotnet tool install --global dotnet-ef

.NET code generator

In a Terminal window:

dotnet tool install --global dotnet-aspnet-codegenerator

SDG tools

In a Terminal window:

dotnet new --install SDG.templates.Console
dotnet new --install SDG.templates.Console.Database
dotnet new --install SDG.templates.Web.API
dotnet new --install SDG.templates.Web.React
dotnet new --install SDG.templates.Web.React.NoClientApp

Add dotnet tools to path

for PROFILE in "$HOME/.bash_profile" "$HOME/.zprofile" "$HOME/.profile"; do
if [[ -f $PROFILE ]]; then
echo 'export PATH=$PATH:~/.dotnet/tools' >> ${PROFILE}
fi
done

Set dotnet locally to "Development Mode"

In a Terminal window:

echo "export ASPNETCORE_ENVIRONMENT=Development" >> ~/.zshrc
echo "export ASPNETCORE_ENVIRONMENT=Development" >> ~/.bash_profile

Security

In a Terminal window:

dotnet dev-certs https --trust
© 2017 - 2021; Built with ♥ in St. Petersburg, Florida.