This is a boilerplate starter, aiming to showcase how Gridsome and an external data source (e.g. Wikidata) can nicely work together.
https://hunsalz.github.io/gridsome-starter-wikidata
- Uses Wikidata as external data source
- Enables downloads of external media data
- Make use of GitHub actions / CI/CD pipeline
- Shows a waterfall grid / aka masonary grid
- Shows tagging capabilities
- Shows favorite filter function
- Enables dark & light mode
- Uses CSS variables, SCSS & BEM for styling
- Shows PWA capabilities
npm install --global @gridsome/cli
gridsome create my-gridsome-site https://github.com/hunsalz/gridsome-starter-wikidata.git
cd my-gridsome-site
to open foldergridsome develop
to start local dev server athttp://localhost:8080
Project includes GitHub Actions by default.
GitHub Actions run automatically whenever you push to your Git repo. Add skip ci
to commit header to skip a CI run.
GitHub Actions workflow contains GitHub Pages as deployment target. By default GitHub Pages deploy is skipped until GH_TOKEN is set as repository secret var. Prerequisite is that you have created a corresponding token.
If you want to verify your local build, you can easily mount your dist folder into a nginx container.
docker run --rm --name nginx-stage -p 8080:80 -v ${PWD}/dist/:/usr/share/nginx/html/:ro -d nginx:latest
Afterwards visit http://127.0.0.1:8080/
If you set PATH_PREFIX=/gridsome-starter-wikidata just run:
docker run --rm --name nginx-stage -p 8080:80 -v ${PWD}/dist/:/usr/share/nginx/html/gridsome-starter-wikidata:ro -d nginx:latest
Afterwards visit http://127.0.0.1:8080/gridsome-starter-wikidata