Skip to content

Se7enseads/OnlineVotingSystem.api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Online Voting System - API

🖼️ Embedded Diagram (GitHub)

Diagram

Setup instructions

  1. Linux
  2. Windows

Linux

1. Install .NET 8 SDK

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

2. Install Entity Framework Core global tool

dotnet tool install --global dotnet-ef

3. Clone the repository

git clone https://github.com/Se7enseads/OnlineVotingSystem.api.git

4. Install Jetbrains toolbox and then install Rider .NET in the toolbox

5. Open the cloned repo with rider

rider OnlineVotingSystem.api

5. Install dependencies in the rider terminal

dotnet restore

6. Apply database migrations in the terminal

dotnet ef database update

7. Run the application or Ctrl + F5

dotnet run

The API should now be running at http://localhost:5000 or any other port.


Windows

1. Install .NET 8 SDK

Download the latest .NET SDK from the official Microsoft website and install it.

Verify the installation by running:

dotnet --version

2. Install Visual Studio

Download and install Visual Studio with the ".NET Core cross-platform development" workload.

3. Install Entity Framework Core global tool

dotnet tool install --global dotnet-ef

4. Clone the repository

Open PowerShell and run:

git clone <your-repository-url>
cd <your-project-folder>

5. Open the project in Visual Studio

Launch Visual Studio and open the cloned directory.

6. Install dependencies

dotnet restore

7. Apply database migrations

dotnet ef database update

8. Run the application

dotnet run

The API should now be running at http://localhost:5000.


Notes

  • To change the listening port, modify appsettings.json or use:

    dotnet run --urls=http://localhost:PORT
  • Videos to watch

https://youtu.be/AhAxLiGC7Pc https://youtu.be/w8I32UPEvj8

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages