Clone this repository locally or fork to your GitHub account. Run all of the the steps below from the src
directory.
-
History Database: If you don't want to provision the Azure resources, you must at least deploy an instance of Azure Cosmos DB in your Azure Subscription to store chat history.
-
Identity Provider: For local development, you have the option of using a username / password to #. If you prefer to use an Identity Provider, follow the instructions in the next chapter to add one.
- Change directory to the
src
folder - Rename/copy the file
.env.example
to.env.local
and populate the environment variables based on the deployed resources in Azure. - 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 log in with your chosen authentication method (per the pre-requisite configuration).
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.