Back-End Setup
Reading
.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"; doif [[ -f $PROFILE ]]; thenecho 'export PATH=$PATH:~/.dotnet/tools' >> ${PROFILE}fidone
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