GithubHelp home page GithubHelp logo

dgading / data-catalog-components Goto Github PK

View Code? Open in Web Editor NEW

This project forked from getdkan/data-catalog-components

0.0 1.0 0.0 20.65 MB

https://getdkan.github.io/data-catalog-components

JavaScript 88.00% CSS 12.00%

data-catalog-components's Introduction

Data Catalog Components

GetDKAN Maintainability Test Coverage

A set of React components to facilitate the creation of Open Data Catalogs with React.

Working locally

To develop locally against a working version of the data-catalog-frontend, you will need to do the following steps.

  1. Run rm -rf node_modules && npm install in the data-catalog-frontend repo.
  2. Run rm -rf node_modules && npm install in the data-catalog-components repo.
  3. Run npm link in this repo (data-catalog-components), this will create a symlink to your global npm registry.
  4. Run npm link <relative path to dkan frontend>/node_modules/react in this repo to connect the component library to the frontend's react folder.
  5. Run npm link @civicactions/data-catalog-components in the data-catalog-frontend repo. This will make it so when you run npm install it will symlink the node_modules folder to the global symlink instead of downloading the library from npm.
  6. Run gatsby develop in the data-catalog-frontend repo.
  7. In this repo, run npm run lib:watch to work on components or npm run css:watch to work on just CSS changes. Babel will now watch any commands you make to React components in this folder and rebuild the library. When a rebuild happens it will cause the frontend Gatsby development server to rebuild and show your changes.

Viewing the Components

This project utilizes storybook to document the available components.

To see the available components:

  1. clone this repo
  2. Install the dependencies with npm:
    1. cd data-catalog-components
    2. npm install
  3. Start storybook
    1. npm run storybook

Docz preview

  • Comment out base: '/data-catalog-components' from doczrc.js
  • Run npm run docz:serve then visit http://localhost:3000.

Publishing

  1. Review exports in index.js
  2. Increase version in package.json
  3. run npm login
  4. run npm publish --access public

Publish to Github Pages

  1. run npm run prepublish; npm run deploy-storybook

Testing Components without Updating NPM Package

To test or use the components from a github branch:

  1. Create new branch locallly
  2. Remove lib from .gitignore
  3. Run npm run lib
  4. Push lib folder and .gitignore to your branch
  5. Add branch to package.json by running npm install --save getdkan/data-catalog-components#MY-BRANCH
  6. Profit

data-catalog-components's People

Contributors

dgading avatar janette avatar fmizzell avatar alexiscott avatar thierrydallacroce avatar dharizza avatar kevingilbert100 avatar dependabot[bot] avatar

Watchers

James Cloos 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.