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
- Host: GitHub
- URL: https://github.com/graphile/gatsby-source-pg-example
- Owner: graphile
- License: mit
- Created: 2018-11-01T12:37:22.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2025-06-03T09:13:27.000Z (7 months ago)
- Last Synced: 2025-07-08T09:52:50.328Z (6 months ago)
- Language: CSS
- Size: 3.21 MB
- Stars: 18
- Watchers: 2
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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/)