A plug-and-play starter application built using Briza Air's Questionnaire component on the frontend and Node/Express JS on the backend for server-to-server communication hitting the Briza API.
Use this application as a starting point in building your own commercial insurance experience if you have received your credentials (Briza API key + Brokerage ID).
- Your Briza API key + Brokerage ID. This is required in order to make requests to Briza's API and return a question set.
- A Google Maps API key. This is optional, and can be used to automatically populate suggestions from Google Places during address lookup.
With recent versions of Node.js and NPM on your machine, run:
npm install
Copy .env.example
to .env
and paste in values for:
-
BRIZA_API_URL
: API URL address provided by Briza -
BRIZA_API_KEY
: Your private API key -
BROKERAGE_ID
: The unique ID of the brokerage
- Set your
googleMapsApiKey
in index.html. This is needed to automatically populate suggestions from Google Places during address lookup.
Once your environment variables are set up, run:
npm start
Running the above command will start both a server on http://localhost:3000 and a frontend application on http://localhost:3700.
If the above steps have been followed successfully, you should now see Briza's Pre-application questions rendering in your browser.