|
1 | 1 | # woo.sh
|
2 |
| -Framework for generating a GraphQL server backed by a database. |
| 2 | +Framework for generating an [Apollo GraphQL](https://www.apollographql.com/) based server, |
| 3 | +backed by a configurable database. |
| 4 | + |
| 5 | +# Try it out |
| 6 | +The example is based on a simplified version of the Star Wars GraphQL schema and requires a running |
| 7 | +instance of ArangoDB. |
| 8 | +```bash |
| 9 | +$ sh ./woo.sh --input example/db-schema/ \ |
| 10 | + --output ./generated-example-server \ |
| 11 | + --config example/config.yml \ |
| 12 | + --driver arangodb \ |
| 13 | + --custom-api-schema example/custom-api-schema.graphql \ |
| 14 | + --custom-resolvers example/custom-resolvers.js |
| 15 | + |
| 16 | +$ npm server.js |
| 17 | + |
| 18 | +Waiting for ArangoDB to become available at http://localhost:8529 |
| 19 | +ArangoDB is now available at http://localhost:8529 |
| 20 | +Database dev-db deleted: true |
| 21 | +Database 'dev-db' created |
| 22 | +Collection 'Droid' created |
| 23 | +Collection 'Species' created |
| 24 | +Collection 'Planet' created |
| 25 | +Collection 'Human' created |
| 26 | +Collection 'Starship' created |
| 27 | +Edge collection 'FriendsEdgeFromDroid' created |
| 28 | +Edge collection 'HomeWorldEdgeFromDroid' created |
| 29 | +Edge collection 'SpeciesEdgeFromDroid' created |
| 30 | +Edge collection 'OriginEdgeFromSpecies' created |
| 31 | +Edge collection 'StarshipsEdgeFromHuman' created |
| 32 | +Edge collection 'FriendsEdgeFromHuman' created |
| 33 | +Edge collection 'HomeWorldEdgeFromHuman' created |
| 34 | +Edge collection 'SpeciesEdgeFromHuman' created |
| 35 | +GraphQL service ready at: http://localhost:4000/ |
| 36 | +``` |
0 commit comments