Run the following command to download the .NET installation script:
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.shThen execute it:
chmod +x dotnet-install.sh
./dotnet-install.sh --version latestTo make sure .NET is installed, run:
dotnet --versiondotnet tool install --global dotnet-efgit clone https://github.com/Se7enseads/OnlineVotingSystem.api.git4. Install Jetbrains toolbox and then install Rider .NET in the toolbox
rider OnlineVotingSystem.apidotnet restoredotnet ef database updatedotnet runThe 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 --versionDownload and install Visual Studio with the ".NET Core cross-platform development" workload.
dotnet tool install --global dotnet-efOpen PowerShell and run:
git clone <your-repository-url>
cd <your-project-folder>Launch Visual Studio and open the cloned directory.
dotnet restoredotnet ef database updatedotnet runThe 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