for hackathon
The application uses a secret .env file with API keys. You should have a unique API key from CoHere playground and RevAI labs Once you have these keys, create a file called ".env" in the root of your project, and add it as below.
For the hackathon there should not be any cost for these keys
TESTAPIKEY=<cohereAPI>
TESTAPIKEY2=<revLabsKey>
from the wwwroot/js directory:
cd wwwroot/js
npm install
browserify aiagent.js --s aiagent -o bundle.js
The VSCode build/run tasks should then be setup to run the netcore application
The "Controllers" directory is where the API controllers live. Currently it is just using standard MVC controllers, but this could potentially be augmented with Swagger for .NET
The "Services" directory is the API controllers for talking to the CoHere API and Wikipedia
The "Pages" folder has the HTML with Razor syntax for creating front-end UI
dotnet lambda deploy-serverless -sb aisistant-hackathon -t serverless.template -sn default