Skip to content

GraphQL API for the LEGO Bionicle theme. A demonstration testbed for GraphQL technologies and patterns.

License

Notifications You must be signed in to change notification settings

Tohaker/bioniQL

Repository files navigation

bioniQL

BioniQL Logo

Test

Pronounced the same as "Bionicle"

This repo contains a GraphQL server that aims to demonstrate all the features of the GraphQL spec. To keep things fresh and fun, it serves data on the Bionicle line of LEGO sets, released from 2001 to 2023 (with some breaks in between)

Running

The server consists of a Node.JS server and a JSON server to serve the database. For correct operation, these must be run together.

To run the server;

$ npm run build
$ npm start

To run the database

$ npm run start:db

You can then access the GraphiQL interface on http://localhost:4000/graphql in your browser.

Development

You can easily run both the server and the database together in watch mode for fast development;

$ npm run dev

Updating the database file or the source code will cause the respective process to restart.

You can find out more about using the server on these pages;

Testing

End-to-end tests are provided to demonstrate the features of the server. If you want examples of which requests you can send to the server, this should be your first port of call.

You can run the tests with;

$ npm t

About

GraphQL API for the LEGO Bionicle theme. A demonstration testbed for GraphQL technologies and patterns.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published