Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benjaminboruff/mini-graphql-server
A simple zero-configuration command-line GraphQL server
https://github.com/benjaminboruff/mini-graphql-server
graphql micro mini-graphql-server
Last synced: about 2 months ago
JSON representation
A simple zero-configuration command-line GraphQL server
- Host: GitHub
- URL: https://github.com/benjaminboruff/mini-graphql-server
- Owner: benjaminboruff
- License: mit
- Created: 2018-03-28T22:36:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-03T23:27:40.000Z (almost 7 years ago)
- Last Synced: 2024-11-03T04:51:49.491Z (2 months ago)
- Topics: graphql, micro, mini-graphql-server
- Language: JavaScript
- Size: 166 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/benjaminboruff/mini-graphql-server.svg?branch=master)](https://travis-ci.org/benjaminboruff/mini-graphql-server)
# mini-graphql-server: a command-line GraphQL server
`mini-graphql-server` is a simple, zero-configuration command-line GraphQL server. It is to be used for testing, local development, and learning.
Currently, only a small sample of `books` are available to query by `author` and/or `title` via:
```
{
books {
author
title
}
}
```*Coming soon*: schema, resolvers, and data file detection in a target directory.
#### Installation
> yarn global add mini-graphql-server#### Usage
To start server:
> mini-graphql-serverTo query:
* open browser to http://localhost:3000/graphiql* or `curl -XPOST -H "Content-Type:application/json" -d '{"query": "{books { title author}}"}' http://localhost:3000/graphql`