Giter VIP home page Giter VIP logo

hubspot-project-poc's Introduction

HubSpot-Project-POC

A poc project with new config + structure

Structure overview

Components

This project contains:

  • An Auth component that defines an app
    • Including this component in your project will generate a private app in HubSpot
  • Two CRM card components
    • These components both require auth, which is specified in the component config
  • Two serverless function components
    • This component also requires auth, which is specified in the component config
  • A CMS JS Rendering component

Notable structure characteristics

  • Components are able to share code via the imports field. This enables components to define internal import paths for external files.
    • Currently being used by the "My POC project card 1" and "My POC project function" components

hscomponent.json config

Users create project components using the standardizes hscomponent.json configuration file. The supported fields in the config are...

  • type: (string) The type of this component
  • label: (string) The user-friendly label for this component
  • uid: (string) The uid of this component
  • auth: (string) The uid of the auth component that we want to link
  • imports: (array[relative_path: string]) Import mappings that allow files within this component to access files outside of the component (following node subpath import pattern)
    • It is required that these imports begin with # so we can differentiate from external packages
    • Q: Should we allow the relative_paths to point to files in other components?
    • Q: Should we allow the relative_paths to point to folders, or just files?
  • data: (object) Any component-specific config options

hubspot-project-poc's People

Contributors

brandenrodgers avatar

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.