Skip to content

Make fresh data available regularly #41

@jvwong

Description

@jvwong

Background: Currently we retrieve the article data manually and save it to local file (e.g. data-search.js). On build (e.g. npm run build or npm run watch), the data file is directly imported as a JS module and the associated data is bundled with the App.

Problem: The data is currently fixed. The intention is for the App to show updated article information (e.g. daily). To accomplish this, it will be necessary to make bundling and serving the App (i.e. on Cloudflare) separate from the article data it uses.

Goal: Make the App retrieve the article data file from an external source.


Q: What are the applicable constraints, e.g. compatibility or performance?

A: The source of the data should enable browsers to access the information. For instance, a binary file associated with a GitHub release does not provide for Cross-Origin Resource Sharing (CORS). A temporary solution is to point the app at a file in the remote (e.g. https://raw.githubusercontent.com/PathwayCommons/hyper-recent/main/example-data/data.json) and find a suitable data store (see below).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions