Create a Project

You need to have .NET Core 3 installed. If you do not you can follow the instructions from Microsoft below.

After you have .NET Core 3 installed, open your command prompt/terminal, navigate to a location of your choice where you want to house the project and run the following commands:

mkdir SlackClone
cd SlackClone
mkdir src
cd src

This creates a directory for our project and adds the src directory which will hold the code files. Next up you will have to create a solution file and a backend project.

In your command prompt/terminal run the following command to create a minimal ASP.NET server project and the solution file:

dotnet new web -n SlackClone -o backend
cd backend
dotnet new sln -n SlackClone
dotnet sln add .

If everything has gone well, typing the following command should launch a simple server at the address localhost:5000 that displays Hello World!

dotnet run

Last updated