Skip to content

Gapminder/ai-worldview-benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ai Worldview Benchmark

This is an Observable Framework app. To install the required dependencies, run:

npm install

Then, to start the local preview server, run:

npm run dev

Then visit http://localhost:3000 to preview the app. For more, see the docs.

Deploy instructions

⚠️ This is unusual: the app won't automatically show the new data when it updates on github repo. It caches the data itself and needs to be redeployed.

Angie, Dab, Ola, Semio have access to Gapminder workspace on Observable. Log in, see Data Apps and press "Deploy" button:

Also, pushing to master branch on GitHub will trigger the redeploy

Project structure

src/index.md - Observable framework uses Markdown instead of HTML. This is the home page.

src/data - Data loaders fetch data from github repo using DDFCSV reader. This happens during build time. App must be rebuilt and redeployed if data changes.

src/components - JS logic and stuff

observablehq.config.js - This is the app configuration file.

Command reference

Command Description
npm install Install or reinstall dependencies
npm run dev Start local preview server
npm run build Build your static site, generating ./dist
npm run deploy Deploy your app to Observable
npm run clean Clear the local data loader cache
npm run observable Run commands like observable help

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published