Skip to content

Instantly share code, notes, and snippets.

@kurtisdunn
Last active November 25, 2018 03:52
Show Gist options
  • Save kurtisdunn/c4eb97664c3265b3662f3cb7af94f4ab to your computer and use it in GitHub Desktop.
Save kurtisdunn/c4eb97664c3265b3662f3cb7af94f4ab to your computer and use it in GitHub Desktop.
Fullstack API using .NET & SQLServer for MacOS

Fullstack API using .NET & SQLServer for MacOS

Running this stack up on MacOS 10.14.0

Prerequisites

  • Docker
  • Dotnet

To download the latest SQL Server image, run the following Docker command from Terminal:

sudo docker pull microsoft/mssql-server-linux:2017-latest

To run it, you run the following Docker command from Terminal

sudo docker run -e 'ACCEPT_EULA=Y' \
-e 'SA_PASSWORD=Passw0rd!' \
-p 1433:1433 \
--name mssql \
-d microsoft/mssql-server-linux:2017-latest

To confirm that your container exists and is running, use the following command:

docker ps -a

Ensure you have dotnet installed

which dotnet

Create the directory for the dotnet application

mkdir moviesapp
cd moviesapp

The following command will list out the types of dotnet applications that can be created from templates. We will need the 'web' framework.

dotnet new

dotnet new web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment