Giter Club home page Giter Club logo

data_portal's Introduction

mySociety Data Portal repo

A lightweight, backend-free open data portal, powered by Jekyll

View at https://data.mysociety.org

Adding data

Updating from datapackages repos

  • Packages can be automatically imported from the new data publishing approach. Add the new page to the _data/datapackages.yaml file. The github action should sync relevant content from that. The categories are taken from the 'keywords' in the original datapackage.yaml - so either add those to the source, or add manually afterward.

Add data manually

Add a new file in _datasets following the examples there.

Local Development

There is a docker config that will work locally or on codespaces.

Within this script/server will run the local debug server.

This will then start the rendering process and serve on http://127.0.0.1:4000

Theme

Jkan runs on Jekyll.

Local adaptions to mySociety theme are in sass folder - both that and 'theme/sass' are equally accessible to compiler - so no need for relative paths.

Key template is templates/default.html - this then brings in various mysoc_ includes.

Don't forget to git submodule update --init --recursive to pull down the mySociety styles

If running locally, categories are generated by ruby script/generate_categories.rb - this is handled as part of the build action otherwise.

data_portal's People

Contributors

timwis avatar everypoliticianbot avatar ajparsons avatar jacksonj04 avatar pezholio avatar jjediny avatar dracos avatar wrightmartin avatar mdeuk avatar lxyu0405 avatar tobinbradley avatar wilsaj avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.