This repository contains a number of examples of using Valhalla and a given framework (like Next.js, Astro, and of course Gatsby). Other contributions are welcome.
Please make sure that a given framework has not already been added, and if you'd like to augment existing, PRs so welcome, and we'd love to make sure the code matches idiomatic standards for that given framework for data fetching, code standards, etc.
First, run yarn
in the root of the repository after cloning. Then, run yarn
in the given framework folder (or new framework) to install dependencies.
Note: since the Gatsby site produces the GraphQL API, it currently requires additional environment variables that are internal to the Gatsby team. The other examples, however, work off of the produced GraphQL API
cd frameworks/gatsby
yarn start
cd frameworks/nextjs
yarn dev
cd frameworks/astro
yarn dev
-
Contentful for the pups, cats, and exotics
-
WordPress for the blog
-
Shopify for the e-commerce functionality
-
🚀 Valhalla API for powering them all, and producing a unified GraphQL API for use with any framework