Skip to content

bmw2621/dnd5eGQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dungeons and Dragons GraphQL API

This repository forked data source files from Bagel Bits DnD5eAPI and transforms it from a RESTful API to a GraphQL API.

Orginal data is formatted for an unstructured MongoDB database. GraphQL schema requires a structured schema, so efforts are currently organized on reshaping data into a SQLite3 database.

Usage

To use the API in its current state, and test currently available endpoints:

  • git clone https://github.com/bmw2621/dnd5eGQL.git
  • cd dnd5eGQL
  • npm install
  • node app.js
  • navigate to http://localhost:4000/graphql
  • GraphIQL is currently enabled and queries can be made in the interactive interface

TODO

  • Races endpoint and in schema
  • Subraces endpoint and in schema
  • Magic Schools endpoint and in schema
  • Equipment Category and link to Equipment Type in schema
  • Language Type in schema and in schema
  • Conditions Type in schema and endpoint
  • Proficiency Type in schema
  • Spells endpoint and in schema
  • Traits endpoint and in schema (Update Race and Subrace traits to graph to Traits Type)
  • Weapons Properties endpoint and in schema

About

Transformation of DnD5eAPI to GraphQL API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published