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.
The app is deployed on Gapminder Cloudflare pages, which is connected to this GitHub repo. Pushing to master
branch here will trigger the redeploy.
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 | Description |
---|---|
npm install |
Install or reinstall dependencies |
npm run dev |
Start local preview server |
npm run build |
Build your static site, generating ./dist |
Deploy your app to Observable (not used now) | |
npm run clean |
Clear the local data loader cache |
npm run observable |
Run commands like observable help |