Skip to content

Repository files navigation

data/expedities

data/expedities

Journalistieke hackathons met CBS data. Een initiatief van Stichting Momus, Open State Foundation en het CBS.

Project overview

Two hackathons bringing together 35 journalists, developers and CBS experts to find stories in public data. This website provides event information, registration, and programme details.

Stack: Jekyll (static site generation) + Express.js (form API with NocoDB) + Tailwind CSS (CDN)

Structure

_config.yml # Jekyll configuration
_layouts/ # Page templates (default, page, hackathon, form)
_includes/ # Reusable components (header, footer, event-bar, etc.)
_data/ # Event details (events.yml) and navigation (navigation.yml)
api/ # Express server + NocoDB registration endpoint
assets/ # SVG logos and illustrations

Pages

PageLayoutDescription
index.htmldefaultHomepage with event previews
workshop.htmlpageWorkshop programme details
hackathon-wonen.htmlhackathonHackathon #1: Wonen (two-column with data sidebar)
hackathon-energie.htmlhackathonHackathon #2: Energie (two-column with data sidebar)
overons.htmlpageAbout the project and partners
aanmeldformulier.htmlformRegistration form

Local development

Prerequisites

  • Ruby 3.0+ with Bundler
  • Node.js 18+

Setup

# Install Jekyll
bundle install
# Build the site
bundle exec jekyll build
# Install API dependenciescd api && npm install &&cd ..
# Start the server
PORT=3000 node api/server.js

The site will be available at http://localhost:3000.

For live-reload during development, run bundle exec jekyll build --watch in a separate terminal.

Environment variables

Copy .env.example to .env and fill in:

VariableDescription
NOCODB_API_TOKENNocoDB API token for registration storage
NOCODB_BASE_URLNocoDB instance URL (required)
NOCODB_TABLE_IDNocoDB table ID for registrations (required)
PORTServer port (default: 3000)
SHOW_LAUNCH_PAGESet to ON to show splash page with OG image only

Docker deployment

docker compose up --build

The multi-stage Dockerfile builds the Jekyll site with Ruby, then serves it with Node.js. Configure environment variables in docker-compose.yml or via your deployment platform (e.g. Coolify).

Editing content

  • Event details (dates, locations, registration status): edit _data/events.yml
  • Navigation: edit _data/navigation.yml
  • Page content: edit the corresponding .html file directly
  • Sidebar datasets/research: edit the sidebar section in _data/events.yml

About

Website dataexpedities.nl - journalistieke hackathons met CBS data

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Sponsor this project

Packages

Contributors

Languages