bekerov / graphiqlide

Tarantool Cartridge WebUI GraphiQL IDE plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tarantool Cartridge WebUI GraphiQL IDE plugin

This plugin is used to add GrapiQL IDE functionality into Tarantool Cartridge WebUI

Based on:

GraphQLIDE looks like:

GraphQLIDE

Usage

!!! Attention Build tested only on Debian-based GNU linux!

Build

Clone repo

git clone git@github.com:no1seman/graphiqlide.git graphiqlide
cd graphiqlide
npm i

Build rock

tarantoolctl rocks make
tarantoolctl rocks pack graphqlide version

Also command "npm run build-rock" can be used to to build the rock

After build completion you will get:

  • graphiqlide-version.all.rock
  • graphiqlide rock installed to graphiqlide/.rocks dir

Install

Install rock

Simply run ./script/install_rock.sh from the root of Tarantool Cartridge App root path or make it manually from console:

cd <Tarantool Cartridge application dir>
tarantoolctl rocks install <path to rock file>/graphqlide-version.all.rock

Add plugin to your Tarantool Cartridge App

To get GraphQLIDE work just add to Tarantool Cartridge application init.lua the following code:

require('graphqlide').init()

Development

For debug & development purposes VS code will be used. Use F5 to run app or Shift-Crtl-B to run production build task

Useful commands:

  • npm run build - builds production project
  • npm run start - run application without need to integrate it into Tarantool Cartridge App. Useful for development purposes
  • npm run build-rock - builds production project and bundles it into rock

About

Tarantool Cartridge WebUI GraphiQL IDE plugin


Languages

Language:JavaScript 95.8%Language:HTML 2.5%Language:Lua 0.8%Language:Shell 0.4%Language:Makefile 0.3%Language:CSS 0.2%