Curriculum Vitae with gatsbyJS a static page generator for reactJs.
-
I dislike centralisation that has cause LinkedIn to become a dominant platform for an online "work" identity
-
I agree that there is some utility in having my work history, projects and certifications publicly available
-
I wanted to apply some React knowledge that I learnt doing A Udemy course and modifying a gatsby CV that firsttris created to meet my needs seemed like a good opportunity to try this out in an existing code base.
https://stephen.resume.engineering
Creating my own design seemed lame, I forked A design made by Tristan Teufel which looked fantastic but needed a few things changed to fit my tastes.
Tristan cites https://github.com/xriley/pillar-theme by UX/UI designer Xiaoying Riley as the design that he based his on.
Based on best practices of gatsbyJS
- src/data/ - JSON Files
- src/markdown-pages/ - Markdown Files
- src/templates - Templates (main source for generation)
- src/components - Components
- src/translations - Localization
- src/assets - Assets, pictures and stuff
for more information on how to get started with Gatsby if refer to https://www.gatsbyjs.org/docs/
➜ npm run
build
rm -Rf public && rm -Rf .cache && gatsby build --prefix-paths
develop
gatsby develop
predeploy
rm -Rf public && rm -Rf .cache && npm run build
prod
gatsby serve
cy:open
cypress open
cy:run
cypress run
test:interactive-develop
start-server-and-test develop http://localhost:8000 cy:open
test:ci-develop
start-server-and-test develop http://localhost:8000 cy:run
test:ci-live
cypress run -C cypress.config-live.js
Deployment is dealt with through GitHub Pages, check the .github/workflows
folder for the details.
If you're setting this up yourself you'll want to check the ReadMe for GitHub Pages, and the section about Setting up a custom domain.
I use Cypress for some sanity tests on every commit, again on the live website post deploy. These tests include:
- Checks for link rot (checking if links on my page sends a non 200 response code)
- Checks to make sure the content my work and projects pages matches what's in my configuration
Eventually I'll include accessibility tests (the code is in there but commented out). Currently, my header fails for having grey on grey text.
This testing can happen with the local version npm run test:ci-develop
and with the live version test:ci-live
hosted
by GitHub. If you need to change the URL check cypress.config-live.js
.