Giter Site home page Giter Site logo

Comments (1)

alexanderson1993 avatar alexanderson1993 commented on September 26, 2024

Yeah, all of that code is in the Space Edventures repo.

Here's where the center query, which is used by the Thorium.spaceEdventurescenter query is defined: https://github.com/alexanderson1993/space-edventures/blob/master/functions/graphql/schema/center.js

The userByToken query, which is used by Thorium.getSpaceEdventuresLogin is here: https://github.com/alexanderson1993/space-edventures/blob/master/functions/graphql/schema/user.js

And creating flight records, which is in the Flight class, is here: https://github.com/alexanderson1993/space-edventures/blob/master/functions/graphql/schema/flightRecord.js

I think those are the only graphQL endpoints that are used directly by Thorium.

The API URL is hard-coded in server/helpers/graphqlClient.js. If the new CMSC mobile app backend is able to exactly mimic the GraphQL API for those three endpoints, then the only change that would be necessary in Thorium is making it so you can configure a different API endpoint.

In other words, so long as the requests are accepted the same as before, and the responses are sent back the way that Thorium expects, no other changes should be necessary. That would be ideal, but not strictly necessary since the CMSC is the only place that uses SpaceEdventures anyway.

Though if the powers that be were so inclined, I know that Bracken and the Space Place at Renaissance would be interested in using something like SpaceEdventures.

from thorium.

Related Issues (20)

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.