Update: Diese Version ist obsolet. Das eingesetzte Tool "Nanogen" war nicht flexibel genug.
Neuer Sourcecode @ https://github.com/tomsrocket/spassmitdaten
Dieses Repository enthält den Code für die Open Data Linkliste auf spassmitdaten.de.
- Logo Icon: Smile by Gregor Cresnar from the Noun Project - https://thenounproject.com/search/?q=smile&i=770810
- Logo Font: Jomhuria by KB Studio Principal design - https://fonts.google.com/specimen/Jomhuria
If you want to have screenshots of pdf files, you need to install imagemagick
sudo snap install imagemagick
- Copy your credential files to the config directory
- Execute the following commands:
npm install googleapis@27 --save
node read-google-spreadsheet.js
- The links will be written to public/links.json
# generate all missing previews
npm run generate-previews
That command ^ does the following things:
- Generate screenshots of all websites via: npx phantomjs generate-website-previews.js
- Optimize the screenshot images to width 480px via: node generate-thumbnails.js
- Download pdf files and create screenshots of the first page
If it does not work, try running it with debugging enabled
DEBUG='*' node generate-website-previews.js
The following command builds the files in watch mode and serves the result at localhost:3000
npx nanogen start
# Build for prod
npm run build
# Serve static files
cd public;sudo docker run -d -v `pwd -P`:/var/www:ro -p 8080:8080 trinitronx/python-simplehttpserver
-
Lazy load images: https://developers.google.com/web/fundamentals/performance/lazy-loading-guidance/images-and-video/
-
Use bulma for design
-
Nice design: https://dansup.github.io/bulma-templates/templates/kanban.html
-
Nice theme: https://cssninja.io/themes/fresh
Read full documentation about nanogen here: https://doug2k1.github.io/nanogen/docs/
npx nanogen init
Start the current site:
$ npx nanogen start [options]
Build the current site:
$ nanogen build [options]