This is an ASP.NET Web API project that provides various features, including a video player, forum, photomanager, and messenger.
Before you begin, ensure you have the following installed:
- 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" }
- Change your token to a 64-character string and adjust its expiry
- Navigate to the project directory:
cd TalkHubAPI- Execute the following command to apply the initial migration and create the database:
dotnet ef database update- Run the following command to seed the database:
dotnet run seeddata- Run the project:
dotnet run --environment Production