https://github.com/quorini/quorini-js-sdk
Design and run serverless cloud API
https://github.com/quorini/quorini-js-sdk
api backend graphql
Last synced: about 1 month ago
JSON representation
Design and run serverless cloud API
- Host: GitHub
- URL: https://github.com/quorini/quorini-js-sdk
- Owner: quorini
- License: other
- Created: 2024-10-30T15:34:32.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2025-03-21T05:53:14.000Z (about 2 months ago)
- Last Synced: 2025-04-09T22:11:28.042Z (about 1 month ago)
- Topics: api, backend, graphql
- Language: TypeScript
- Homepage: https://quorini.com
- Size: 594 KB
- Stars: 33
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Quorini SDK
This is JS SDK to integrate your Quorini project with web app.
[](https://quorini.com/)
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.
[](https://www.producthunt.com/products/quorini#quorini)
[](https://quorini.app/)
---
# Getting Started
For more detail about packages
[npm package @quorini/core](https://www.npmjs.com/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](/packages/core/README.md)
[npm package @quorini/ui-react](https://www.npmjs.com/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](quorini.app)
[README.md](/packages/ui-react/README.md)
## Installation
```ts
npm install @quorini/core
npm install @quorini/ui-react
```## Configuration of SDK
1. Go to [quorini.app](http://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.```tsx
// 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,
},
})...
```