8000 GitHub - thoqbk/Commander: The first C# project after years · GitHub
[go: up one dir, main page]

Skip to content
thoqbkPublic

About

The first C# project after years

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Commander

Course reference .NET Core 3.1 MVC REST API - Full Course

Get started

Pull image and start SQL Server container

  1. Pull SQL server docker image
docker pull mcr.microsoft.com/mssql/server:2019-latest
  1. Start SQL Server container
docker run -d --name sql_server_demo -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=reallyStrongPwd123' -p 1433:1433 mcr.microsoft.com/mssql/server
  1. Install Azure Data Studio and connect to Db instance
  2. Create new database via Azure Data Studio
  3. Create Commands table
CREATE TABLE [dbo].[Commands](
	[Id] [int] NOT NULL,
	[HowTo] [varchar](250) NULL,
	[Line] [varchar](250) NULL,
	[Platform] [varchar](255) NULL
) ON [PRIMARY]
  1. Insert sample data to Commands table

Update configuration and start API server

  1. Update appsettings.json accordingly
  2. Start server dotnet run
  3. Test APIs
curl https://localhost:5001/commands
curl https://localhost:5001/commands/{id}

About

The first C# project after years

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0