Run the following command to download the .NET installation script:
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
Then execute it:
chmod +x dotnet-install.sh
./dotnet-install.sh --version latest
To make sure .NET is installed, run:
dotnet --version
dotnet tool install --global dotnet-ef
git clone https://github.com/Se7enseads/OnlineVotingSystem.api.git
4. Install Jetbrains toolbox and then install Rider .NET in the toolbox
rider OnlineVotingSystem.api
dotnet restore
dotnet ef database update
dotnet run
The API should now be running at http://localhost:5000 or any other port.
Download the latest .NET SDK from the official Microsoft website and install it.
Verify the installation by running:
dotnet --version
Download and install Visual Studio with the ".NET Core cross-platform development" workload.
dotnet tool install --global dotnet-ef
Open PowerShell and run:
git clone <your-repository-url>
cd <your-project-folder>
Launch Visual Studio and open the cloned directory.
dotnet restore
dotnet ef database update
dotnet run
The API should now be running at http://localhost:5000.
-
To change the listening port, modify
appsettings.jsonor use:dotnet run --urls=http://localhost:PORT -
Videos to watch