Giter Club home page Giter Club logo

ckanext-datagovtheme's Introduction

ckanext-datagovtheme

Github Actions PyPI version

Data.gov theme, branding, and UI customizations for catalog.data.gov as a CKAN extension.

Features

TODO document these better.

  • Provides a new spatial query view (overrides ckanext-spatial some front end)

Usage

Requirements

TODO: document how ckanext-datagovtheme interacts with third-party extensions, maybe in the context of Features above.

These extensions are required.

Additionally, ckanext-datagovtheme has "weak" dependencies on these extensions. The dependency might be on templates, template helpers, or other functionality.

This extension is compatible with these versions of CKAN.

CKAN version Compatibility
<=2.8 no
2.9 yes

Configuration

TODO: what configuraiton options exist?

Development

Requirements

  • GNU Make
  • Docker Compose

Setup

Build the docker containers. You'll want to do this anytime the dependencies change (requirements.txt, dev-requirements.txt).

$ make build

Start the containers.

$ make up

CKAN will start at localhost:5000.

Clean up the environment.

$ make down

Open a shell to run commands in the container.

$ docker-compose exec ckan bash

If you're unfamiliar with docker-compose, see our cheatsheet and the official docs.

For additional make targets, see the help.

$ make help

Testing

They follow the guidelines for testing CKAN extensions.

To run the extension tests:

$ make test

Lint your code.

$ make lint

Common issues

We have seen issues with datagovtheme not installed. If this is the case, run python setup.py develop in the container.

Matrix builds

The development environment drops as many dependencies as possible. It is not meant to have feature parity with GSA/catalog.data.gov or GSA/inventory-app. Tests should mock external dependencies where possible.

In order to support multiple versions of CKAN, or even upgrade to new versions of CKAN, we support development and testing through the CKAN_VERSION environment variable.

$ make CKAN_VERSION=2.9 test
Variable Description Default
CKAN_VERSION Version of CKAN to use. 2.9
COMPOSE_FILE docker-compose service description file. docker-compose.yml

ckanext-datagovtheme's People

Contributors

nickumia-reisys avatar fuhuxia avatar avdata99 avatar thejuliekramer avatar jbrown-xentity avatar btylerburton avatar jin-sun-tts avatar robert-bryson avatar adborden avatar pjsharpe07 avatar jahangiriqbal-rei avatar philipashlock avatar kvuppala avatar david-blubaugh avatar jjediny avatar kmanaseryan avatar tddpirate avatar mogul avatar dano-reisys avatar

Watchers

 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.