GithubHelp home page GithubHelp logo

cypherql's Introduction

CypherQL - a GraphQL implementation for reading the Cypher System SRD

Introduction

This is a GraphQL server that serves up data from the Cypher System SRD. The initial schema was defined by the user @fva on the Cypher Unlimited Discord server. The data is taken from the excellent Cypher-System-JSON-DB.

Requirements

It Works on My Machine™️

All you should require on your machine is NodeJS. I have tested it again Node 18.16.0, feel free to try it against other versions and let me know.

Cloning the Repo

IMPORTANT: This module uses a git submodule to bring in the json data. A straight clone of the repo WILL NOT WORK.

To clone this repo and get all the code correct, do:

git clone --recurse-submodules https://github.com/christav/cypherql

If you've already cloned the repo without using the --recurse-submodules flag, instead run these two commands in your working directory:

git submodule init
git submodule update

After doing one of those commands, check if you have the CSRD.json file in the src/Cypher-System-JSON-DB directory. If not, double check your submodule is set up correctly.

Running the Code

Run npm run start:dev to bring up the server locally. This is running under nodemon, so will automatically restart if you change the files.

If you want to run it outside of nodemon, you can run npm run build and then run node build/src/index.js. The intention is to eventually dockerize this to make it easier to deploy, but this is just a fun side project for now.

cypherql's People

Contributors

christav avatar

Stargazers

Michael Stanley avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.