#graphql #tooling #web developmentA gentle introduction to GraphQL API integrationsGraphQL is a great alternative to REST (or other HTTP API designs). This is an quick introduction to the core concepts around consuming a GraphQL API. To see some examples consuming a GraphQL API: In Python, see Python GraphQL client requests example using gql In JavaScript (brow ...
#javascript #node #graphql #web developmentJavaScript GraphQL client requests in Node and the browser using `graphql.js`An example consuming a GraphQL API in JavaScript from Node and the browser using graphql.js See the example live: https://example.codewithhugo.com/js-graphql-client-example/. Full repo: https://github.com/HugoDF/js-graphql-client-example. ...
#node #deployment #javascript #toolingBuild and deploy a Vue/React/Vanilla JS app with Parcel and GitHub pagesParcel allows us to bundle frontend applications with no configuration and GitHub pages affords us a way to deploy them for free. Here’s how to use these two tools together to deploy a JavaScript application. Full example of a repo deployed like this: https://github.com/Hug ...
#git #bash #productivityChange the date of a git commitOne of the greatest and worst things with git is that you can rewrite the history. Here’s a sneaky way of abusing that, I can’t think of a legitimate reason to do this. As with anything, thanks StackOverflow for all the options I can pick from 👍. ...
#cdn #dev-decoded #productivityThe step-by-step guide to create a domain redirect with CloudflareRedirecting a whole domain using Cloudflare can be useful but isn’t documented anywhere, here’s how to do it. ...
#python #graphql #web developmentPython GraphQL client requests example using gqlAn example consuming a GraphQL API from Python using gql. Full code example at HugoDF/python-graphql-client-example. ...
#deployment #meta #css #hugoSwitching the lights on: Hugo vs Hugo config filesA simple Hugo blog setup The story of getting codewithhugo.com up and running. The tl;dr is the following: I always rave about my blog setup, it’s simple, fast and just works I used Hugo, “The world’s fastest framework for building websites”, a static site generator I used a the ...
#jest #Testing #javascriptWhen to use Jest snapshot tests: comprehensive use-cases and examples 📸There’s some nice use-cases for snapshot tests outside of the well-travelled React/Vue UI component ones. In other words, although React and Vue testing with snapshots is pretty well documented, that’s not the only place they’re useful. As a rule of thumb, you c ...
#tooling #git #ci #bashDeploy to multiple environments with git and CircleCIEasily deploying to multiple environments in a simple manner using GitHub, CircleCI and Heroku. Continuous Integration is awesome, but sometimes you need a buffer between auto-deploying things on merge and the production release. To do that with CircleCI requires some git branch- ...
#Redis #toolingInstall just redis-cli on Ubuntu, Debian, JessieAs part of adding integration tests to an app on CircleCI I ran into the following issues: redis-cli’s API has changed from Redis CLI versions 2 to 3 to 4 ie. this works in v4 redis-cli -u ${REDIS_URL} but doesn’t in v2 the “only way” to install redis-cli is thr ...