This is a demo of an interactive financial assistant. It can show you stocks, tell you their prices, and even help you buy shares.
- An Auth0 Lab account, you can create one here.
- An OKTA FGA account, you can create one here.
- An OpenAI account and API key create one here.
- Docker to run the postgresql container.
To setup OKTA FGA for the sample, create a client with the following permissions:
Read/Write model, changes, and assertions
Write and delete tuples
Read and query
To setup your Auth0 Lab tenant for the sample, create two applications:
-
Regular Web Application
- Allowed Callback URLs:
http://localhost:3000/api/auth/callback
- Allowed Logout URLs:
http://localhost:3000
- Allowed Callback URLs:
-
Machine to Machine
- API:
Auth0 Management API
- Permissions:
read:users update:users delete:users read:authentication_methods
- API:
Configure Google as social connections.
And enable MFA with push notifications using Auth0 Guardian.
- Clone this repository to your local machine.
- Install the dependencies by running
npm install
in your terminal. - Set up the environment variables making a copy of the .env-example file.
- Start the database with
npm run db:up
- Configure your FGA store with
npm run fga:migrate:create
To start the development server, run npm run dev
in your terminal. Open http://localhost:3000 to view the chatbot in your browser.
Apache-2.0