Get Started
Set up your first Nuvix project and make your first API call.
Nuvix provides a complete backend-as-a-service. This guide will get you from zero to a running application in minutes.
Create a Project
Everything in Nuvix starts with a Project.
- Log in to the Nuvix Console.
- Click Create Project.
- Give it a name (e.g., "My Awesome App") and a unique ID.
Save your Project ID. You'll need it to initialize the SDK.
Install the SDK
Nuvix provides type-safe SDKs for your client applications.
npm install @nuvix/clientyarn add @nuvix/clientpnpm add @nuvix/clientInitialize the Client
Initialize the SDK in your application's entry point (e.g., App.js, main.ts).
import { Client } from '@nuvix/client';
const nx = new Client()
.setEndpoint('https://api.nuvix.in/v1') // Your API Endpoint
.setProject('<PROJECT_ID>'); // Your Project IDMake Your First Request
Let's test the connection by creating an anonymous session. This verifies that your app can talk to Nuvix.
import { Client } from '@nuvix/client';
const nx = new Client()
.setEndpoint('https://api.nuvix.in/v1')
.setProject('<PROJECT_ID>');
// Create an anonymous session
const session = await nx.account.createAnonymousSession();
console.log('Logged in as guest:', session.$id);Next Steps
Now that you're connected, explore the core modules:
Authentication
Add user login, registration, and password recovery.
Database
Store and query your application data.
Storage
Upload and manage files.
Messaging
Send emails, SMS, and push notifications.
Server-Side Access
For backend scripts or administrative tasks, use the REST API with an API Key.
- In the Console, go to Settings > API Keys.
- Create a key with the scopes you need (e.g.,
documents.read,users.write). - Pass the key in the
X-API-Keyheader.
curl -H "X-Project-ID: <PROJECT_ID>" \
-H "X-API-Key: <YOUR_API_KEY>" \
https://api.nuvix.in/v1/usersHow is this guide?
Last update: