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: 8 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-03T23:27:40.000Z (over 7 years ago)
- Last Synced: 2025-02-20T20:17:35.898Z (8 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
          [](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-server
To 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`