DEV Community

Discussion on: Get started with minimal API for .NET 6

Collapse
 
carnato profile image
Vishal Yadav

How can setup environment for .net server

Collapse
 
softchris profile image
Chris Noring

Hi Vishal, tell me more about what you need?

Collapse
 
carnato profile image
Vishal Yadav

I know how to setup nodejs server but i didn't know how to setup .NET server and i start to learn .net so please help me for how to start

Thread Thread
 
softchris profile image
Chris Noring

so normally, dotnet run starts a web server if you build a web api. Depends on the project type. Or are you looking to something like http-server but for .NET?

Thread Thread
 
carnato profile image
Vishal Yadav

yes yes so please explain how to setup .net server

Thread Thread
 
softchris profile image
Chris Noring

so as long as you .net core installed, it just runs when you run dotnet run from the command line. You can configure what ports it starts on for http or https, here's a doc for that, launchSettings.json is what you want to check for that. More details, docs.microsoft.com/en-us/aspnet/co...

Thread Thread
 
carnato profile image
Vishal Yadav

Thanks for the helping me ✌