GithubHelp home page GithubHelp logo

briza-insurance / air-starter Goto Github PK

View Code? Open in Web Editor NEW
0.0 16.0 0.0 179 KB

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

License: MIT License

HTML 12.59% JavaScript 86.72% Shell 0.69%

air-starter's Introduction

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.

air-starter's People

Contributors

gigagyrfalcon avatar saqibddb avatar nikolashkubelev avatar

Watchers

James Cloos avatar David Horak avatar Andre Toledo avatar Bill Li avatar Rafael Kyoshi Ito avatar Rishi Sharma avatar Iryna avatar Karol Maciaszek avatar  avatar Ross Hill avatar  avatar Richard avatar Bernardo Chagas avatar  avatar Sylvester avatar Chase Clifton avatar

air-starter's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.