My personal blog. Forked from Gatsby Blog Starter template and inspired here and there by Dan Abramov's blog.
Gatsby makes use of several environment variables which are documented in .env.example
file. Before building the project make sure to modify these variables as needed. Then copy the .env.example
as .env.development
to project root for Gatsby to recognize it.
To run the build locally, type like so:
cp .env.example .env.development
yarn
yarn dev
Alternatively, you can mimic the production environment from Netlify like so:
npm install -g netlify-cli
ntl dev
This will download and execute a Netlify builder running the gatsby develop
command.
Finally, open http://localhost:8000 to view the blog.
Project is packaged with Prettier formatter, AVA unit tests, Playwright automated tests, and Pa11y accessibility tests. They can be ran respectively like so:
yarn lint
yarn test:unit
yarn test:dev
yarn test:a11y
Niko Heikkilä <yo@nikoheikkila.fi>
- Github: @nikoheikkila
- Mastodon: @nikoheikkila
- DEV: nikoheikkila
- LinkedIn: nikoheikkila
Content can be found under content/
directory. Edit posts as needed and submit a PR for me to review. All PRs are automatically deployed by Netlify as preview deployments. Once approved and merged to master branch they will be deployed to production.
Other contributions to UI, accessibility, React components, security, dependency updates etc. are warmly welcome as well!
Feel free to check the open issues.
To quickly bootstrap a new post or page draft use the CLI tool new.js
at project root either via yarn new
or invoking directly.
Copyright of blog posts © 2019 Niko Heikkilä <yo@nikoheikkila.fi>.
Source code of this project is MIT licensed.
This README was generated with ❤️ by readme-md-generator.