Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grandstack

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grandstack

Command line tool for GRANDstack and Neo4j GraphQL

  • 0.1.7
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

npm version

⚠️ NOTE: This project is currently a work-in-progress. APIs are still changing and some things are not yet implemented. If you have any feedback please open an issue.

GRANDstack CLI

A command line interface for working with GRANDstack (GraphQL, React, Apollo, Neo4j Database) projects.

Install

npm install -g grandstack

Usage

⚠️ NOTE: Consider this a planning document for how commands could work. Many of these are not yet implemented and the API is likely to change. See the table below for current status of commands.

CommandEmojiSubcommandStatus
graphql
🚧devWIP - initial functionality
🚧inferschemaWIP - initial functionality
neo4j
☠️constraintsNot yet implemented
☠️migrateNot yet implemented
deploy
🚧codesandboxWIP - initial functionality
🚧fileWIP - initial functionality
🚧githubWIP - in dev
🚧apiWIP - initial functionality
configure🚧WIP - initial functionality

Commands

graphql

grandstack graphql dev

Start local GraphQL server.

Options (should also be taken from environment variables):

  • --types
  • --types-file Not yet implemented
  • --neo4j-uri
  • --neo4j-user
  • --neo4j-password
  • --graphql-port
  • --encrypted (boolean)
  • --database
  • --debug - log generated Cypher queries Not yet implemented

grandstack graphql inferschema

Inspect existing Neo4j database and generate GraphQL type definitions.

Options:

  • --schema-file - the file to write the generated type definitions to, if not specified log to standard out
  • --neo4j-uri
  • --neo4j-user
  • --neo4j-password
  • --start-server - start GraphQL server using generated type definitions instead of writing to file
  • --debug - log generated Cypher queries when using --run-server Not yet implemented
  • --run-server (boolean)
  • --encrypted (boolean)
  • --database
  • --graphql-port
neo4j

grandstack neo4j constraints

Generate CREATE CONSTRAINT Cypher statements for a given GraphQL schema

grandstack neo4j migrate

Generate refactor Cypher statements given a GraphQL schema diff.

deploy

grandstack deploy [api web neo4j]

Need some way to specify service (Zeit, Netlify, GCP,etc)

Deploy API to CodeSandbox

grandstack deploy api codesandbox

grandstack deploy file --types "type Person {name: String}" --path ./foobar

Write projects to filesystem, passing type definitions as an argument

grandstack deploy github

Create new github repo from files, types and database

Options:

  • --repo-name - a name for your repo, dashes and lowercase
  • --oauth-token - your manually generated auth token with repo scope
  • --database - name of the database if you have one, only applies to graph versions > 3.5
  • --encrypted (boolean) - whether or not your database is encrypted
  • --new-repo (boolean) - whether this is a new repo or you are connecting to a current repo (current repo option not yet available)
configure

Create profiles with Neo4j credentials, etc

grandstack configure

Options:

  • --where-is - points you towards current grandstack dir
  • --profile name - creates a new json profile with creds stored
  • --init - establishes a grandstack folder if none exists
  • --neo4j-uri
  • --neo4j-user
  • --neo4j-password

Keywords

FAQs

Package last updated on 03 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc