Skip to content

Ready-to-use server with OST blockchain APIs fully integrated through GraphQL

License

Notifications You must be signed in to change notification settings

tylerlastovich/ost-graphql-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OST HEADER IMAGE

OST • GraphQL Server

Quite possibly the fastest way you can get started using crypto in your app.

By using OST branded tokens you can set up a token economy inside any site/app/etc. This is a small turn-key project that sets up a Node/Express development server running Apollo GraphQL so that you can ignore all the back end work while getting started developing front end services.

GraphQL allows for your front end service to ask for exactly what information it wants, and get a clean response. Apollo has written some very nice documentation on how to use GraphQL from React, Vue, Angular, plain JS, etc. Give it a look when you are ready to learn more.

Apollo explainer

Installation and Use

cd ost-graphql-server
vi logic/conf.js # add your OST API keys and Apollo service ID
npm install
npm start
# Server should be running on localhost:<GRAPHQL_PORT>/graphiql!

This server comes with the basic OST APIs, but that is not where the fun stuff happens. This project is set up so you can add your own API functions (resolvers) and types quickly. logic/type-defs.js contains the type definitions for graphql, where the query and mutation types match the functions found in logic/resolvers.js. Take a look at logic/apis/ost.js to get an example of what a sample resolver looks like. Make your own file, add it to logic/resolvers.js, and then add the matching types to logic/type-defs.js. Now you have an API -- Easy!

API Keys

Dependencies

  • Node v8

Disclaimer

This is a development project and not meant for serious production use as-is. We are not liable for any outcome from this service, use at your own risk! MIT Licensed.

About

Visit OST.com to learn more about OST.

Made possible with support from FUTURED

Want to support independent writing with your OST? FUTURED: 0x0e082d72593f8e2B885B0ca61c5da843aefAcfB1 FUTURED Logo

About

Ready-to-use server with OST blockchain APIs fully integrated through GraphQL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published