https://github.com/kdcio/gatsby-source-abucms
GatsbyJS source plugin for AbuCMS
https://github.com/kdcio/gatsby-source-abucms
abu-cms gatsby gatsby-plugin gatsby-source gatsbyjs headless-cms kdcio kdcsoftware serverless serverless-cms
Last synced: 29 days ago
JSON representation
GatsbyJS source plugin for AbuCMS
- Host: GitHub
- URL: https://github.com/kdcio/gatsby-source-abucms
- Owner: kdcio
- License: mit
- Created: 2021-04-21T04:28:52.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-06T08:11:56.000Z (over 1 year ago)
- Last Synced: 2024-12-25T13:41:04.929Z (over 1 year ago)
- Topics: abu-cms, gatsby, gatsby-plugin, gatsby-source, gatsbyjs, headless-cms, kdcio, kdcsoftware, serverless, serverless-cms
- Language: JavaScript
- Homepage:
- Size: 1.58 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gatsby-source-abucms
Source plugin for pulling data from [AbuCMS](https://github.com/kdcio/abu) into [GatsbyJS](https://www.gatsbyjs.com/). It creates links between models and asset so they can be queried in Gatsby using GraphQL.
[](https://www.npmjs.com/package/@kdcio/gatsby-source-abucms) [](https://bundlephobia.com/result?p=@kdcio/gatsby-source-abucms) [](https://github.com/kdcio/gatsby-source-abucms/actions?query=workflow%3ACI) [](https://snyk.io/test/github/kdcio/gatsby-source-abucms?targetFile=package.json) [](https://sonarcloud.io/dashboard?id=kdcio_gatsby-source-abucms) [](https://sonarcloud.io/dashboard?id=kdcio_gatsby-source-abucms) [](https://sonarcloud.io/dashboard?id=kdcio_gatsby-source-abucms) [](https://github.com/kdcio/gatsby-source-abucms/blob/master/LICENSE)
:warning: This plugin only works on Gatsby v3+.
## Install
```bash
npm install gatsby-source-abucms
```
## Configuration
```js
// gatsby-config.js
module.exports = {
plugins: [
{
resolve: `gatsby-source-abucms`,
options: {
baseUrl: "https://xxxxxxxx.execute-api.us-east-1.amazonaws.com",
apiBase: "prod", // deployment stage
models: ["blog", "home_page", "about_page", "social_profile"], // modelId
apiKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
useCache: false, // default is true. set to false if you want to debug.
},
},
],
};
```
## Example
[Gatsby's blog starter with AbuCMS](https://github.com/kdcio/gatsby-starter-blog-abucms)