New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bootstrap-gql-server

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootstrap-gql-server

Bootstrap an instance of Apollo GraphQL server

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

bootstrap-gql-server

The idea behind this library is to provide a simple way to bootstrap a new graphQL server instance.

Inspired by by projects like create-react-app and create-react-native-app this project aims to provide a similar service.

Unlike the before mentioned projects bootstrap-gql-server doesn't hide the implementation and comes without an eject command

After initializing a new instance of a graphQL server all dependencies are visible in the package.json file.

Install

yarn add global bootstrap-gql-server yarn

Generate new GQL API instance

bootstrap-gql-server init [project-name]

Follow instructions

cd [project-name] && yarn start

go to localhost:[port]/[gaphiql path] and start investigating the generated schema

The resulting schema is the same as the one used in the example here https://github.com/apollographql/frontpage-server

Current supported configurations include

  • GraphQL API Port: default (8080)
  • GraphQL API path: default (graphql)
  • Graphiql interface path: default (graphiql)
  • Add dataloader to the list of dependencies: default (true)
  • Support GraphQL subscriptions: default (true)
  • GraphQL subscription server port: default (8090) [only if subscriptions support = true]
  • Subscription server path: default (/) [only if subscriptions support = true]
  • Subscriptions engine: default (pubsub) [only if subscriptions support = true]

Contributing

This is project is a living thing and it needs caring, if you wan to contribute, please do by submitting PRs, issues...

Roadmap / What's next

  • Add data source support (mySQL, Postegrsql, REST)
  • Add support for koa, hapi, restify...
  • Add specs / tests
  • Deploy to launchpad
  • Typescript / Flow
  • Improving the codebase in general
  • init-advanced, an init command to generate an instance for users with more advanced needs

Keywords

Apollo

FAQs

Package last updated on 06 Aug 2017

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