npm.io
18.0.0 • Published 2 years ago

@chillicream/bananacakepop-graphql-ide

Licence
SEE LICENSE FILE
Version
18.0.0
Deps
0
Size
11.4 MB
Vulns
0
Weekly
0
Stars
5.8K

Banana Cake Pop GraphQL IDE

GraphQL IDE for Devs

Description

The IDE to create, explore, manage, and test GraphQL APIs with ease.

Installation

Install this package in your project:

npm install @chillicream/bananacakepop-graphql-ide --save-dev
# or
yarn add @chillicream/bananacakepop-graphql-ide --dev
# or
pnpm add @chillicream/bananacakepop-graphql-ide --save-dev

Recipes

Usage with express
Install the middleware in your project:
npm install @chillicream/bananacakepop-express-middleware --save-dev
# or
yarn add @chillicream/bananacakepop-express-middleware --dev
# or
pnpm add @chillicream/bananacakepop-express-middleware --save-dev

Add it to your /graphql route or any other (e.g., /bcp):

import express from "express";
import bcpMiddleware from "@chillicream/bananacakepop-express-middleware";

// ...

const app = express();

app.use(
  "/graphql",

  // for `cdn` hosted version
  bcpMiddleware({ mode: "cdn" })

  // for `self` hosted version
  // bcpMiddleware({ mode: "self" }),

  // place here your graphql middleware and others
);

app.listen(3000, () => {
  console.log(`GraphQL on http://localhost:3000/graphql`);
});

Keywords