Extension React Usmetadata


Extension Basics

Title
React Usmetadata
Name
ckanext-react_usmetadata
Type
Public extension
Description
The **ckanext-react_usmetadata** extension for CKAN allows users to embed a React-based USMetadata
CKAN versions
Download-Url (zip)
Last commit
5 years ago (2020-07-09 16:21:29)
Url to repo
Category
Data Management & Quality


Background Infos

Description (long)
Show details

.. You should enable this project on travis-ci.org and coveralls.io to make these badges work. The necessary Travis and Coverage config files have been generated for you.

.. image:: https://travis-ci.org/datopian/ckanext-react_usmetadata.svg?branch=master :target: https://travis-ci.org/datopian/ckanext-react_usmetadata

=============

ckanext-react_usmetadata

Embeds the React USMetadata App using custom paths


Requirements

Tested with GSA Inventory App and CKAN 2.5 and greater


Installation

The CKAN extension installs like a regular CKAN extension.

To update the embedded react application:

  1. Backup and remove this public folder
  2. Go to the react application directory
  3. yarn build
  4. `cp -r build/static/* /path/to/ckanext-react_usmetadata/ckanext/react_usmetadata/public/
  5. type ls public/js. The file names contain a hash value for example:
    • runtime~main.7ba465df.js
    • main.b0613878.chunk.js
    • 2.758f1cc0.chunk.js (Note that you can ignore the .js.map files. Just leave them alone) Copy the updated filenames for future reference.
  6. Do the same for the public/css folder, recording the new filenames
  7. Open /path/to/ckanext-react_usmetadata/templates/snippets/usmetadata_app.html
  8. Replace the <script> and <link> tags with the new filenames from the previous steps.
  9. Test and commit the changes.

Development Installation

To install ckanext-react_usmetadata for development, activate your CKAN virtualenv and do::

git clone https://github.com/datopian/ckanext-react_usmetadata.git
cd ckanext-react_usmetadata
python setup.py develop
pip install -r dev-requirements.txt

Running the Tests

To run the tests, do::

nosetests --nologcapture --with-pylons=test.ini

To run the tests and produce a coverage report, first make sure you have coverage installed in your vi

Version
Version release date
(not set)
Contact name
(not set)
Contakt email
(not set)
Contact Url
(not set)


Installation Guide

Configuration hints
Plugins to configure (ckan.ini)
react_usmetadata
CKAN Settings (ckan.ini)
DB migration to be executed
(not set)
<< back to Extensions