Skip to content

quorini/quorini-js-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quorini SDK

This is JS SDK to integrate your Quorini project with web app.

Design and run serverless cloud API

Define your data model visually, and deploy a fully-managed serverless backend in minutes.

Visit quorini.com for more details.
Visit quorini.app to start building new project.

Product of the day at ProductHunt

Test project with Live API


Getting Started

For more detail about packages

npm package @quorini/core – is used to configure a project with the backend published by quorini.app. Quorini SDK enables developers to develop Quorini Backend-powered mobile and web apps.

README.md

npm package @quorini/ui-react – leverages a range of functions and React hooks designed to seamlessly integrate with your React application configured using the @quorini/core package in conjunction with the backend services provided by quorini.app

README.md

Installation

npm install @quorini/core
npm install @quorini/ui-react

Configuration of SDK

  1. Go to quorini.app "Live API".

  2. Navigate to "Tech Docs" tab.

  3. Copy types, queries and mutations and place in you codebase/repository.
    3.1. ./src/quorini-types.d.ts
    3.2. ./src/quorini-queries.ts
    3.3. ./src/quorini-mutations.ts

  4. Inside index.tsx globally configure you SDK integration.
    4.1. projectId can be copied from URL path of "Live API".
    4.2. env (optional) can be "production" or "development". By default, it’s "production".
    4.3. qglPaths (optional) and values are from step 3.

    // index.tsx
    ...
    import { QClient } from "@quorini/core"
    import * as queries from './src/quorini-queries'
    import * as mutations from './src/quorini-mutations'
    
    QClient.configure({
        projectId: "YOUR_PROJECT_ID",
        env: "YOUR_PROJECT_ENV",
        gqlPaths: {
            queries,
            mutations,
        },
    })
    
    ...