Skip to content

A starter application for quick setup of Briza Air's components and Briza API server-to-server communication.

License

Notifications You must be signed in to change notification settings

briza-insurance/air-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Air starter - Vanilla JavaScript

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.

Who's this for?

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).

Requirements

  1. Your Briza API key + Brokerage ID. This is required in order to make requests to Briza's API and return a question set.
  2. A Google Maps API key. This is optional, and can be used to automatically populate suggestions from Google Places during address lookup.

Step 1: Initial installation

With recent versions of Node.js and NPM on your machine, run:

npm install

Step 2: Set your environment variables

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

Optional: Set a Google Maps API key (Optional)

  • Set your googleMapsApiKey in index.html. This is needed to automatically populate suggestions from Google Places during address lookup.

Step 3: Running your application

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.

Useful links

  • Briza Air - A web components library designed to help developers create the best experience for merchants who use Briza API.
  • Briza API - Tools that developers can use to build apps that help small businesses get insurance.
  • Briza.com - Briza's homepage.

About

A starter application for quick setup of Briza Air's components and Briza API server-to-server communication.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published