An open API service indexing awesome lists of open source software.

https://github.com/graphile/gatsby-source-pg-example

Example of using gatsby-plugin-pg
https://github.com/graphile/gatsby-source-pg-example

Last synced: 5 months ago
JSON representation

Example of using gatsby-plugin-pg

Awesome Lists containing this project

README

          



PostGraphile

Graphile Heart

Gatsby


gatsby-source-pg example

This repo is an example of using gatsby-source-pg to pull in data from PostgreSQL into Gatsby.

To start, clone this repository down, make sure you're running a local
PostgreSQL database server (and have admin privileges), then:

```
yarn
./db/reset.sh
yarn develop
```

We create (or reset) the `gatsby_example` Postgres DB for you, and seed it with some simple data.

## Helpful links

- [Gatsby documentation](https://www.gatsbyjs.org/)
- [gatsby-source-pg](https://github.com/graphile/gatsby-source-pg/)
- [PostGraphile documentation](https://www.graphile.org/postgraphile/)