Clone this repository locally or fork to your GitHub account. Run all of the steps below from the src directory.
-
History Database: You must have a Cosmos DB instance configured to store chat history. Set the connection string via the
AZURE_COSMOSDB_URIenvironment variable. -
Identity Provider: For local development, you can use a username / password. If you prefer an Identity Provider, follow the instructions to add one.
- Change directory to the
srcfolder - Rename the file
.env.exampleto.env.localand populate the environment variables - Install npm packages by running
npm install - Start the app by running
npm run dev - Access the app on http://localhost:3000
You should now be prompted to login with your chosen OAuth provider.
Note
If using Basic Auth (DEV ONLY) any username you enter will create a new user id (hash of username@localhost). You can use this to simulate multiple users. Once successfully logged in, you can start creating new conversations.