Coder Social home page Coder Social logo

rushgeo / fogg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from element84/fogg

0.0 1.0 0.0 9.48 MB

๐ŸŽฉ Component library and tools for rapidly building maps

Home Page: https://fogg.element84.com

License: Other

Shell 1.21% JavaScript 88.94% SCSS 9.86%

fogg's Introduction

Fogg

Fogg is a component library that stems from the need to quickly spin up new mapping applications with search capabilities. While the library contains generic components needed within a typical map-based dashboard, the Lens component is what serves as the flagship component to wrap a map.

This library is packaged as a Gatsby theme that can be easily imported to a project.

What's inside?

  • Gatsby for templating and static site generation
  • Gatsby relies on React as the UI framework
  • Gatsby Themes are utilized to provide a reusable starting point for mapping UIs
  • Storybook is used as the presentational UI and documentation

Getting Started

Installing Fogg

Add Fogg as a dependency to your project

# With npm
npm install fogg

Using the Library

Components

Importing the Lens component:

import { Lens } from 'fogg/ui';

const MyComponent = () => {
  return (
    <Lens {...lensSettings} />
  )
}

Hooks

Imporing the hook that provides an API to Lens:

import { useLens } from 'fogg/hooks';
const { geoSearch = {}, map = {} } = useLens();
const { search } = geoSearch;

search(searchSettings);

Developing

Prerequisites

  • NPM

Installation

Run the following command in your terminal to install all dependencies:

npm install

Development

Run the following command to start up your development server:

npm run develop

Testing

Run the following command to run the test suite:

npm run test

Contributions

At this time, we're not accepting contributions until we can fully understand how it ties in to our workflow. If interested, definitely reach out and let us know.

TODO - move to issues

[] Complete stories for each component [] Clean out unused components [] Add basic tests for each component [] Add tests for lib [] Add tests for hooks [] Examples [] Cypress tests for examples [] documentation for hooks [] documentation for lib

fogg's People

Contributors

colbyfayock avatar dopeters avatar beadams86 avatar justinykuo avatar mentzerk avatar gsieling-e84 avatar trevorlang avatar dependabot[bot] avatar parksjr avatar rushgeo avatar

Watchers

Benjamin Myers 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.