Coder Social home page Coder Social logo

thejuliekramer / ckanext-datagovtheme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gsa/ckanext-datagovtheme

0.0 1.0 0.0 5.04 MB

Theme for Data Catalog

Python 5.23% JavaScript 6.27% CSS 16.59% HTML 20.80% XSLT 46.56% Shell 1.44% Dockerfile 0.24% Less 2.87%

ckanext-datagovtheme's Introduction

ckanext-datagovtheme

CircleCI

This repository is front end code sepration for catalog.data.gov. This contains all the template files, Javascripts and stylesheets.

The ckanext-geodatagov and ckanext-spatial extensions must be installed and enabled as plugins before this extension can be installed and enabled.

This extension is compatible with versions of CKAN using Bootstrap 2 and Bootstrap 3. If CKAN is using version 2.8 or higher this extension will use Bootstrap 3.

This extension as well as the dependent extensions above must be installed properly with CKAN before running the tests for this extension.

The tests for this extension are located in the test directory.

They follow the guidelines for testing CKAN extensions.

To run the extension tests:

  1. Make sure your virtual environment is activated

. /usr/lib/ckan/default/bin/activate

  1. cd into the ckanext-datagovtheme directory

cd /usr/lib/ckan/default/src/ckanext-datagovtheme

  1. Use the nosetests command:

nosetests --ckan --with-pylons=test.ini ckanext/datagovtheme/tests

Note: the tests will only run if the environment is installed using the CKAN Install from Source installation

Using the Docker Dev Environment

Build Environment

To start environment, run: docker-compose build docker-compose up

CKAN will start at localhost:5000

To shut down environment, run:

docker-compose down

To docker exec into the CKAN image, run:

docker-compose exec ckan /bin/bash

Run Tests with Docker

docker-compose exec ckan /bin/bash -c "nosetests --ckan --with-pylons=src_extensions/datagovtheme/docker_test.ini src_extensions/datagovtheme/"

Test for CKAN 2.3 with catalog-app

Get inside the container

docker-compose exec app bash

Run the tests

source /usr/lib/ckan/bin/activate
cd /usr/lib/ckan/src/ckan
cp ckan/public/base/css/main.css ckan/public/base/css/main.debug.css
cd /usr/lib/ckan/src/ckanext-datagovtheme
pip install -r dev-requirements.txt
nosetests --ckan --with-pylons=test-catalog-2.3-local-catalog-app.ini ckanext.datagovtheme.tests.test_old_ckan

ckanext-datagovtheme's People

Contributors

fuhuxia avatar thejuliekramer avatar avdata99 avatar adborden avatar pjsharpe07 avatar jahangiriqbal-rei avatar philipashlock avatar jbrown-xentity avatar kvuppala avatar david-blubaugh avatar jjediny avatar tddpirate avatar dano-reisys 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.