All Projects β†’ etalab β†’ udata-gouvfr

etalab / udata-gouvfr

Licence: LGPL-2.1 License
Skin and customization for the French opendata portal based on udata. This project is not maintained anymore. Consider using https://github.com/etalab/udata-front as an alternative.

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects
Less
1899 projects
Vue
7211 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to udata-gouvfr

YALC
πŸ•Έ YALC: Yet Another LOD Cloud (registry of Linked Open Datasets).
Stars: ✭ 14 (-41.67%)
Mutual labels:  open-data
visualization-tool
The tool for visualizing Swiss Open Government Data. Project ownership: Federal Office for the Environment FOEN
Stars: ✭ 20 (-16.67%)
Mutual labels:  open-data
kuwala
Kuwala is the no-code data platform for BI analysts and engineers enabling you to build powerful analytics workflows. We are set out to bring state-of-the-art data engineering tools you love, such as Airbyte, dbt, or Great Expectations together in one intuitive interface built with React Flow. In addition we provide third-party data into data sc…
Stars: ✭ 474 (+1875%)
Mutual labels:  open-data
publicbodies
A database of public bodies such as government departments, ministries etc.
Stars: ✭ 56 (+133.33%)
Mutual labels:  open-data
transitland-atlas
an open directory of mobility feeds and operators β€” powers both Transitland v1 and v2
Stars: ✭ 55 (+129.17%)
Mutual labels:  open-data
velos-paris
Synthèse des compteurs de vélos à Paris
Stars: ✭ 14 (-41.67%)
Mutual labels:  open-data
osd-building-footprints
Open source release of building footprints in Chicago.
Stars: ✭ 61 (+154.17%)
Mutual labels:  open-data
rgugik
Download datasets from Polish Head Office of Geodesy and Cartography
Stars: ✭ 28 (+16.67%)
Mutual labels:  open-data
content-api-scala-client
A Scala client library for the Guardian's Content API
Stars: ✭ 37 (+54.17%)
Mutual labels:  open-data
TED-Talks
All TED talks narratives extracted and cleaned.
Stars: ✭ 91 (+279.17%)
Mutual labels:  open-data
osmand map creation
OSM data + open address data compiled for use in OSMAnd
Stars: ✭ 22 (-8.33%)
Mutual labels:  open-data
311
New web portal for BOS:311
Stars: ✭ 15 (-37.5%)
Mutual labels:  open-data
us-house
117th United States House of Representatives - Contact Information, including: Phone Number, Mailing Address, Official Website, Twitter & Facebook Accounts.
Stars: ✭ 31 (+29.17%)
Mutual labels:  open-data
politicos
API com todos os candidatos Brasileiros!
Stars: ✭ 63 (+162.5%)
Mutual labels:  open-data
docker-ckan
CKAN docker images, docker-compose and examples
Stars: ✭ 46 (+91.67%)
Mutual labels:  open-data
opendata
Open data of Cofacts collaborative fact-checking database
Stars: ✭ 35 (+45.83%)
Mutual labels:  open-data
arboles
Mapa de Arbolado Urbano
Stars: ✭ 13 (-45.83%)
Mutual labels:  open-data
uoft-scrapers
Public web scraping scripts for the University of Toronto.
Stars: ✭ 48 (+100%)
Mutual labels:  open-data
node-nrk
πŸ“Ί Node.JS wrapper for NRK.no APIs
Stars: ✭ 18 (-25%)
Mutual labels:  open-data
erfrischungskarte-frontend
Interactive map of Berlin that shows πŸ•Ά shade areas, πŸ’¨ wind and 🌑 temperature intensities across the day
Stars: ✭ 18 (-25%)
Mutual labels:  open-data

udata-gouvfr

Note: This project is not maintained anymore. Consider using udata-front as an alternative.

udata customizations for Etalab / Data.gouv.fr.

Compatibility

udata-gouvfr requires Python 3.7+ and udata.

Installation

Install udata.

Remain in the same Python virtual environment and install udata-gouvfr:

pip install udata-gouvfr

Create a local configuration file udata.cfg in your udata directory (or where your UDATA_SETTINGS point out) or modify an existing one as following:

PLUGINS = ['gouvfr']
THEME = 'gouvfr'

Development

Prepare a udata development environment.

Note that we're using pip-tools on this repository too.

It is recommended to have a workspace with the following layout:

$WORKSPACE
β”œβ”€β”€ fs
β”œβ”€β”€ udata
β”‚   β”œβ”€β”€ ...
β”‚   └── setup.py
β”œβ”€β”€ udata-gouvfr
β”‚   β”œβ”€β”€ ...
β”‚   └── setup.py
└── udata.cfg

The following steps use the same Python virtual environment and the same version of npm (for JS) as udata.

Clone the udata-gouvfr repository into your workspace and install it in development mode:

git clone https://github.com/etalab/udata-gouvfr.git
cd udata-gouvfr
pre-commit install
pip install -e . -r requirements/test.pip -r requirements/develop.pip

NB: the udata.(in|pip) files are used by the CI to stay in sync with udata requirements. You shouldn't need to tinker with them on your local environment, but they might be updated by the CI when you make a Pull Request.

Modify your local udata.cfg configuration file as following:

PLUGINS = ['gouvfr']
THEME = 'gouvfr'

You can execute udata-gouvfr specific tasks from the udata-gouvfr directory.

ex: Build the assets:

cd udata-gouvfr
npm install
inv assets-build

You can list available development commands with:

inv -l

Theme

The front-end theme for the public facing website, is split into two parts :

  • The Jinja templates are located inside udata_gouvfr/theme/templates.
  • The Less & other sourcefiles for the are located in theme.

In addition we have a nice litle set of CSS Utilities to quickly build front end components, inspired by bootstrap, most of its documentation lives in the css located in theme/less/ and is built using Stylemark, you can read the live documentation in udata_gouvfr/theme/stylemark/ after building it using npm run build-stylemark.

When building pages, here are a few templates to look out for in udata_gouvfr/theme/templates :

  • home.html : well, duh.
  • header.html and footer.html : same idea.
  • raw.html : contains the general html structure exposing a body block where we can write our page's body.
  • base.html : contains some extra html structure exposing a content block for our page's content.
  • subnav-large.html, publish-action-modal.html and carousel.html : TODO

Here are our reusable components :

  • dataset : datasets listings used in many pages.
  • reuse : cards for displaying dataset reused in the real world.
  • participez : is the large blue callout seen on multiple pages.
  • macros : TODO
  • svg : contains SVG assets to be included in our pages.

TODO

Front docs todo :

  • Parcel 2 architecture
    • Static copy
    • Stylemark build
    • VueJS compiler mode
  • VanillaJS IIFE architecture
  • Vue 3 architecture
    • Modals
    • I18n
    • Config plugin
    • Components Back docs todo :
  • CSS/JS file inclusion
  • Static route for UI-Kit

Whenever a components needs some special styling, you can find their corresponding definitions inside theme/less/specific/<component>, it's best if we can avoid having too much specific styling, but sometimes you just really need it.

Finally, we have a bunch of commands to make your life a tad easier, that you can run through npm run.

  • build: Builds the final CSS/JS files and the UI-Kit Documentation. You should probably use this one.
  • build:app: Builds the final CSS/JS files without the UI-Kit
  • build:stylemark: Builds the UI-Kit files and also the CSS/JS files but unminifed (do not use those static files in production)
  • i18n:report: Generates a report of the i18n missing and unused keys
  • i18n:extract: Same as above, but also automatically adds missing keys to translation files
  • clean: Cleans Parcel cache. Use this if you stumble upon weird bugs to start anew.
  • start: Get to coding with live reload and things
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].