Live version of the platform: https://www.trickingroyal.com/
Social Network for online Tricking battles. The aim of this project is to provide a platform for Trickers to connect with each other share content and push each other out of the comfort zone in a playful rewarding way.
Hooked 2018, I Can Be A Hero, BiG, Alex D, Guthrie
The following instructions will help you setup the project on your local development machine.
- ASP.NET Core - The main
c#
based server side platform. Global version set tov2.2.300
inglobal.json
file in the root of the project. - Nodejs - You will need nodejs to use the
npm
(node package manager)
and run the vue client. - MSSQL - You will ether need to download and install the Microsoft SQL server or use the build in Visual Studio local database.
- FFMPEG - Used to trim and downscale videos once they are uploaded.
All we are trying to achieve is getting the code on to your computer and making sure the project is pointing to your database and that the database is created.
- After setting up the prerequisites,
git clone
orfork
this repository. - Set the
DefaultConnection
connection string in theappsettings.json
file, to connect to your database in the following projects:IdentityServer
Battles.Cdn
Battles.Api
. Example (replace<param>
):"Data Source=<Server>;Database=<DatabaseName>;Integrated Security=True;TrustServerCertificate=True;ApplicationIntent=ReadWrite;MultiSubnetFailover=False"
. If you are using the MSSQL server you might need to setup database access permissions. - Create the database using the
entity framework core
Update Database
command located in./TrickingRoyal/src/TrickingRoyal.Database/ef-migration-scripts.txt
file. Example:dotnet ef database update -c AppDbContext -s ../IdentityServer
- Place the
FFMPEG
executables in theBattles.Cdn
project in affmpeg
folder (create the folder if not there). If you would like a different file path for the executables change theVideoEditingExecutables
variable inappsettings.json
.
You can verify that the connection is successful by checking if the tables are populated in the database.
Tests are located in the /test
folder and can be run by executing dotnet test
from the command line in the root of the solution (where the .sln
file is located)
Deployment of this project is handled through VSTS
and the build pipeline is configured in the azure-pipelines.yml
file. The release pipeline is private and cannot be accessed.