Skip to content

Local Development Setup

meshuggahtas edited this page Mar 17, 2022 · 19 revisions

Prerequisites

  • Git
  • .NET Core 6.0 SDK
  • Visual Studio recommended for best development experience or VSCode
  • postgres for the local database

Windows 10

1. Install Git

https://git-scm.com/download/win

2. Install .NET 6.0

https://dotnet.microsoft.com/download/dotnet/6.0

3. Install Postgresql

https://www.postgresql.org/download/windows/ Use the default user postgres with a password postgres, and the default port of 5432 (if you wish to override any of these settings, override the connection string using user secrets)

4. Install Visual Studio or VSCode

Visual Studio

  1. Install Visual Studio Community 2022 from https://visualstudio.microsoft.com/
  2. Run Visual Studio installer and select the following:
  • ASP.NET and web development
  • .NET desktop development
  1. Clone repository from https://github.com/TASVideos/tasvideos.git
  2. Open TASVideos.sln
  3. Select the following project to be built:
  • Postgres
  • Use the Dev Postgres profiles. This will better mimic deployed environments

VSCode

https://code.visualstudio.com/Download

  1. Install C# extension: CTRL+SHIFT+X > C#
  2. Clone Repository: CTRL+SHIFT+G > Clone Repository > https://github.com/TASVideos/tasvideos.git

5. Configuration

  1. Postgresql master password: Run pgAdmin4 and change it to postgres
  2. Build TASVideos: CTRL+SHIFT+D > Select TASVideos, click on green arrow to run
  3. If you use Chrome and Demo build, you will need to use https://localhost:5001

http://localhost:5000 won't work because of Chrome's default security settings.

Ubuntu 20.04.3

1. Install Git

https://git-scm.com/download/linux

sudo apt install git

2. Install .NET 6.0

https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu

wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \

sudo dpkg -i packages-microsoft-prod.deb \

rm packages-microsoft-prod.deb \

sudo apt-get install -y apt-transport-https \

sudo apt-get install -y dotnet-sdk-6.0

3. Install Postgresql

https://www.postgresql.org/download/linux/ubuntu/

sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' \

wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - \

sudo apt-get update \

sudo apt-get -y install postgresql

4. Install VSCode

You can download it with Ubuntu Software.

  1. Install C# extension: CTRL+SHIFT+X > C#
  2. Clone Repository: CTRL+SHIFT+G > Clone Repository > https://github.com/TASVideos/tasvideos.git

5. Configuration

  1. Postgresql master password:
sudo -u postgres psql postgres
\password postgres
  1. Build TASVideos: CTRL+SHIFT+D > Select TASVideos, click on green arrow to run

macOS Big Sur 11.0

1. Install Git

https://git-scm.com/download/mac

2. Install .NET 6.0

https://dotnet.microsoft.com/download/dotnet/6.0

3. Install Postgresql

https://www.postgresql.org/download/macosx/

4. Install Visual Studio or VSCode

Visual Studio

  1. Install Visual Studio Community 2022 from https://visualstudio.microsoft.com/
  2. Run Visual Studio installer
  3. Clone repository from https://github.com/TASVideos/tasvideos.git
  4. Open TASVideos.sln
  5. Select the following project to be built: TASVideos Demo

VSCode

https://code.visualstudio.com/docs/setup/mac

  1. Install C# extension: CMD+SHIFT+X > C#
  2. Clone Repository: CTRL+SHIFT+G > Clone Repository > https://github.com/TASVideos/tasvideos.git

5. Configuration

  1. Postgresql master password: Run pgAdmin4 and change it to postgres
  2. Build TASVideos: CMD+SHIFT+D > Select TASVideos, click on green arrow to run
  3. If you use Safari and Demo build, you will need to visit https://localhost:5001 and input your username and password to the appearing prompt in order to http://localhost:5000 correctly work
Clone this wiki locally