Skip to content

Jordan-Dimitrov/TalkHubAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TalkHubAPI

Overview

This is an ASP.NET Web API project that provides various features, including a video player, forum, photomanager, and messenger.

Getting Started

Prerequisites

Before you begin, ensure you have the following installed:

  1. .NET 8.0 SDK

  2. SQL Server

  3. FFmpeg

Installation

  1. Go to appsettings.Production.json
    • Change your token to a 64-character string and adjust its expiry
      "JwtTokenSettings": {
      "Token": "token-here",
      "MinutesExpiry": 15
      }
    • Adjust your RefreshToken expiry
      "RefreshTokenSettings": {
      "DaysExpiry": 7
       }
    • Adjust your MemoryCache expiry
      "MemoryCacheSettings": {
      "HoursExpiry": 12
       }
    • Adjust your PasswordResetToken expiry
      "PasswordResetTokenSettings": {
      "MinutesExpiry": 15
       }
    • Add your path to the FFMpeg directories and adjust the conversion threads
      "FFMpegConfig": {
      "FFMpegBinaryDirectory": "path-here",
      "TemporaryFilesDirectory": "path-here",
      "VideoConversionThreads": 10,
      "PhotoConversionThreads": 8
      }
    • Change your SQL Connection string
      "ConnectionStrings": {
      "SDR": "connection-string-here"
      }
    • Setup your mail server and configure the MailSettings
      "MailSettings": {
      "Server": "server",
      "Port": 2525,
      "SenderName": "TalkHub",
      "SenderEmail": "email",
      "UserName": "username",
      "Password": "password"
      }
      
  2. Navigate to the project directory:
cd TalkHubAPI
  1. Execute the following command to apply the initial migration and create the database:
dotnet ef database update
  1. Run the following command to seed the database:
dotnet run seeddata
  1. Run the project:
dotnet run --environment Production

About

An ASP.NET Web API for social connections

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages