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.
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
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 |
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 |