Setting up project

This section talks in depth about setting up a frontend or backend project to use Space Cloud in your preferred language.

Note: Make sure you have already deployed Space Cloud.

Available options

Space Cloud supports a wide variety of protocols (GraphQL, HTTP, websockets and gRPC).

For GraphQL lovers

You can use any GraphQL client out there to talk to Space Cloud. However, it’s always recommended to use a popular open source client (eg. Apollo).

Follow this guide to set up Apollo client (recommended for graphql) in your javascript project.

Note: Before choosing an option, check the feature coverage for the various options.

For REST lovers

If you don’t want to use graphql, we have made the following client SDKs for you:

  • Javascript for web and Nodejs projects
  • Golang for Golang projects
  • Java for Android or Java projects (Coming Soon!)

The javascript client uses the HTTP and websocket endpoints under the hood whereas the other clients uses the gRPC endpoints of Space Cloud.

Note: For other languages, you can use our REST APIs directly which are documented here.

Feature coverage

Features GraphQL Javascript Java Golang
Queries ✔️ ✔️ ️️ ✔️ ✔️
Joins ✔️
Mutations ✔️ ✔️ ✔️ ✔️
Subscriptions ✔️ ✔️ ✔️ ✔️
User management ✔️ ✔️ ✔️ ️
File Storage ✔️ ✔️ ✔️
Writing functions ✔️ ✔️ ✔️
Calling functions ✔️ ✔️ ✔️ ✔️
Pub Sub ✔️ ✔️ ✔️

Have a technical question?

Improve the docs!