This repository contains how ReactJs and ASP.NET Core 6.0 can be used to make a tool that allows you to monitor what people are saying about a few selected Nigerian presidential candidates on Twitter. The purpose of this is to see if Twitter opinions really matter when it comes to the Nigerian elections.
Download and install the .NET Core SDK
* If you don't have localdb
available on your system, Download and install SQL Server Express
Clone the repository
git clone https://github.com/Flappizy/Politicians-Twitter-Sentiments.git
Change directory
cd Politicians-Twitter-Sentiments
Restore all nuget packages
dotnet restore
Install node modules & run builds
cd TwitterCandidateSentiments/ClientApp
Install node modules
npm install
Change directory
cd Politicians-Twitter-Sentiments/TwitterCandidateSentiments/appsettings.json
Put your Twitter API Key/secrets in the TwitterSetting section of the file
Put in your connection string
Change directory
cd Politicians-Twitter-Sentiments
dotnet run
Change directory
cd Politicians-Twitter-Sentiments/UnitTestsXunit
dotnet test