Skip to content

Cobalt is a custom front-end for CKAN, integrating the Scottish Government Design System. It is an open data portal prototype currently in development.

Notifications You must be signed in to change notification settings

ScotGovAnalysis/CobaltDataPlatform

Repository files navigation

Cobalt Open Data Portal (Alpha)

A React-based frontend for CKAN, designed to provide a user-friendly interface for exploring and managing open data. This project is part of an alpha testing phase to evaluate its effectiveness among a range of open data portal tools.


Table of Contents

  1. Overview
  2. Features
  3. Getting Started
  4. Usage
  5. API Integration
  6. Contributing

Overview

The Cobalt Open Data Portal is a frontend built with React that interacts with a CKAN backend via its RESTful API.

This project is currently in alpha testing and is being evaluated alongside other open data portal tools. It follows the Scottish Government Design System to ensure consistency with public sector digital services.

Features

  • Search and Filter: Easily search and filter datasets by keywords, organisations, and resource types.
  • Dataset Details: View detailed information about datasets, including metadata, resources, and download links.
  • CKAN API Integration: Seamlessly communicates with a CKAN instance using its RESTful API.
  • CSV Exploration: Allows users to visualise and slice data from CSV resources.

Getting Started

Prerequisites

Before you begin, ensure you have the following installed:

  • Node.js (v16 or higher)
  • npm (v8 or higher)
  • A running instance of CKAN (for backend API)

Installation

  1. Clone the repository:
   git clone https://github.com/ScotGovAnalysis/CobaltDataPlatform.git
   cd CobaltDataPlatform
  1. Install dependencies:
    npm install

Configuration

Before running the project, configure the environment:

  1. Copy the appropriate environment template:

For development:

    cp .env.development.template .env.development

For release:

   cp .env.release.template .env.release
  1. Populate the .env.development or .env.release file with the necessary configuration values.

Usage

Running in Development

To start the development server:

   npm start

Open your browser and navigate to http://localhost:3000.

Building for Production

To create a development build:

   npm run build:dev

To create a release build:

   npm run build:release

To serve the built app locally:

   npx serve -s build --single -l 3000

API Integration

The frontend interacts with CKAN using its RESTful API. Key API endpoints used include:

  • Package Search: /api/3/action/package_search

  • Package Show: /api/3/action/package_show

  • Organisation List: /api/3/action/organization_list

For more information, refer to the CKAN API Documentation.

Contributing

We welcome contributions! Please follow these guidelines when reporting issues:

  • Bug Description (include screenshots if possible)
  • Expected Behavior
  • Actual Behavior
  • Steps to Reproduce For feature requests, please describe the proposed functionality and its potential impact.

About

Cobalt is a custom front-end for CKAN, integrating the Scottish Government Design System. It is an open data portal prototype currently in development.

Topics

Resources

Stars

Watchers

Forks