Skip to content

πŸ—οΈ YIMBY Melbourne's unified data repository. It contains raw data, data cleaning scripts, data processing scripts and visualizations.

Notifications You must be signed in to change notification settings

yimbymelbourne/data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

99 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

YIMBY Melbourne Data

This is YIMBY Melbourne's unified data repository. It contains raw data, data cleaning scripts, data processing scripts and visualizations.

The visualizations are composited into articles that are then hosted at https://yimby-melbourne.observablehq.cloud/data-portal/.

Contributing

This is an Observable Framework project.

To install JavaScript dependencies, run:

npm install

To install Python dependencies, run:

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

To start the local preview server, run:

npm run dev

Then visit http://localhost:3000 to preview your project.

To exit the Python virtual environment, run:

deactivate

For more, see https://observablehq.com/framework/getting-started.

Project structure

A typical Framework project looks like this:

.
β”œβ”€ docs
β”‚  β”œβ”€ components
β”‚  β”‚  └─ timeline.js           # an importable module
β”‚  β”œβ”€ data
β”‚  β”‚  β”œβ”€ launches.csv.js       # a data loader
β”‚  β”‚  └─ events.json           # a static data file
β”‚  β”œβ”€ example-dashboard.md     # a page
β”‚  β”œβ”€ example-report.md        # another page
β”‚  └─ index.md                 # the home page
β”œβ”€ .gitignore
β”œβ”€ observablehq.config.ts      # the project config file
β”œβ”€ package.json
└─ README.md

docs - This is the β€œsource root” β€” where your source files live. Pages go here. Each page is a Markdown file. Observable Framework uses file-based routing, which means that the name of the file controls where the page is served. You can create as many pages as you like. Use folders to organize your pages.

docs/index.md - This is the home page for your site. You can have as many additional pages as you’d like, but you should always have a home page, too.

docs/data - You can put data loaders or static data files anywhere in your source root, but we recommend putting them here.

docs/components - You can put shared JavaScript modules anywhere in your source root, but we recommend putting them here. This helps you pull code out of Markdown files and into JavaScript modules, making it easier to reuse code across pages, write tests and run linters, and even share code with vanilla web applications.

observablehq.config.ts - This is the project configuration file, such as the pages and sections in the sidebar navigation, and the project’s title.

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 project to Observable
npm run clean Clear the local data loader cache
npm run observable Run commands like observable help

About

πŸ—οΈ YIMBY Melbourne's unified data repository. It contains raw data, data cleaning scripts, data processing scripts and visualizations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •