data/
data for the prototype, which are passed into components, templates and pages later on. All json files are also added to the GraphQL API.lib/
helper functions for the build processpublic/
and.cache/
are Gatsby specific and contain all compiled filessrc/
src/components
all React components, which are shared across pagessrc/pages
all files and folders in this directory are used to create the accessible routes of the prototypesrc/templates
templates are similar to pages, except they represent dynamic pages (such as projects)src/_mixins.scss
SASS mixinssrc/_variables.scss
SASS variables (fonts, colors ...)src/style.scss
entry file for the compiled CSS file, which contains all styles
static/
static files, such as images and fontsstatic/json/
geoJSON and topoJSON files, used to render the map. The federal states of Germany were pulled from here.
webpack.config.js
webpack configuration for the extra CSS build step, which generates a CSS file in public containing all CSS used in components
Some components bring their own documentation:
The prototype is based on Gatsby, a very flexible static site generator.
After you checked out the repository, you have to install dependencies
npm install
Afterwards you are able to start the development server.
npm run develop
The prototype is now running on localhost:8000.
Running
npm run build
will build the static site into one single folder, which can then be served by any webserver.
Through an additional build step, two additional files are created:
style.css
Contains all styles in a single filebundle.js
Contains all the transpiled JS in a single file