This is an open source project started and maintained by Yuraima Estevez. Issues and Pull Requests are always welcome!
Feel free to open issues for bugs, feature requests, and general questions.
- What version of node.js/npm are you using (
node --version
andnpm --version
) ? - What version of Gatsby.js are you using (
gatsby --version
) - What did you expect to see?
- What did you see instead?
Pull requests are very welcome! Before submitting changes, please follow these guidelines:
- Check the open issues and pull requests for existing discussions.
- Open an issue to discuss a new feature.
- Write/run tests and lint your code.
- Open a Pull Request.
Unless otherwise noted, the gatsby-source-nytimes-books-api
source files are distributed under the Apache 2.0-style license found in the LICENSE file.
Clone the repo in the plugins
folder of an existing Gatsby project, as is documented in the Gatsby docs for developing a plugin locally
$ cd your-gatsby-project-directory
$ mkdir plugins
$ cd plugins
$ git clone https://github.com/yurm04/gatsby-source-nytimes-books-api
$ cd gatsby-source-nytimes-books-api
$ npm install
To set up the plugin in your Gatsby project you will have to add it to your project's gatsby-config.js
. Check out the README for details on what properties to include. Once you include the plugin, you can run Gatsby locally and you should be able to query data:
gatsby develop
To validate changes made locally, make sure you are querying and receiving the data you expect. Refer to the README to find out what is queryable.
This project uses the git hooks via the husky
package to run tests and lint code before each commit. When making changes to the codebase please make sure to lint and write tests against your work.
npm test