From schema to resolvers, this plugin aims to serve you as a kick-start boilerplate so you can get into wrinting your own GraphQL layer in no time.
This plugin exposes a fully functional /graphql
route, already making the realtionship between a schema file and a resolvers class.
Feel free to use the provided functional tests as an example for contructing your own.
You can easily run them with:
$ npm test
Kuzzle is an open-source backend that includes a scalable server, a multiprotocol API, an administration console and a set of plugins that provide advanced functionalities like real-time pub/sub, blazing fast search and geofencing.
- Github
- 🌍 Website
- 📚 Documentation
- 📧 Gitter
Train yourself and your teams to use Kuzzle to maximize its potential and accelerate the development of your projects. Our teams will be able to meet your needs in terms of expertise and multi-technology support for IoT, mobile/web, backend/frontend, devops. :point_right: Get a quote.
You can use the docker-compose.yml file included in this repository to start a development-oriented stack to help you get started on your custom Kuzzle GraphQL plugin.
Clone this repository locally and type:
$ docker-compose up
This command will start a Kuzzle stack with this plugin enabled. To make development more confortable, a watcher will also be activated, restarting Kuzzle every time a modification is detected.
Note: depending on your operating system, you may get ENOSPC
errors due to the file watcher. This is due to a sysctl
restriction, and can be alleviated by applying the following command prior to starting the docker stack:
$ sudo sysctl -w fs.inotify.max_user_watches=52428
Clone this repository locally and make it accessible from the plugins/enabled
directory relative to the Kuzzle installation directory. A common practice is to put the code of the plugin in plugins/available
and create a symbolic link to it in plugins/enabled
.
Note. If you are running Kuzzle within a Docker container, you will need to mount the local plugin installation directory as a volume in the container.
Please refer to our guides for more instructions on:
- How Kuzzle plugins work.
- How to install Kuzzle plugins.
- Develop your custom plugins with this boilerplate
If you need help, hit us up.