Skip to content

Emerald is a custom front-end for PxStat. It is an open data portal prototype currently in development.

Notifications You must be signed in to change notification settings

ScotGovAnalysis/EmeraldDataPlatform

Repository files navigation

Emerald Open Data Portal (Alpha)

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

Note: This project was originally forked from the PxStat Statistics Portal, but has since been substantially rewritten as a custom frontend. It now uses only the PxStat APIs and backend as a data source, and is no longer affiliated with or representative of the original PxStat frontend codebase.


Table of Contents

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

Overview

The Emerald Open Data Portal is a frontend built with React that interacts with a PxStat backend via its JSON-RPC.

This project is currently in alpha testing and is being evaluated alongside other open data portal tools.

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.
  • PxStat API Integration: Seamlessly communicates with a PxStat instance using its JSON-RPC APIs.
  • CSV Exploration: Allows users to visualise and slice data.

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 [PxStat] (for backend API)

Installation

  1. Clone the repository:
   git clone https://github.com/ScotGovAnalysis/EmeraldDataPlatform.git
   cd EmeraldDataPlatform
  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 PxStat using its JSON-RPC API.

For more information, refer to the PxStat 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

Emerald is a custom front-end for PxStat. It is an open data portal prototype currently in development.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 10