Exa Protocol Documentation
Exa Protocol Documentation
Exa Protocol Documentation
  • Getting Started with ExaDrive SDK
    • Introduction
    • Install SDK
    • Upload Files
    • Update File
    • Get Files
    • Delete Files
    • Best Practices
  • ExaDrive Dashboard
    • Introduction
    • Create an App
    • Connect Your Domain to Your App
    • Using a Bucket
      • Upload a File
    • Use the File in Your Project
    • Billing
    • Settings
  • GETTING STARTED WITH EXACOMPUTE
    • Introduction
    • Rent Your Machine
    • Activate Your Rented Machine
    • View Your Machines & Earnings
  • ExaCompute Desktop App
    • Introduction
    • Download and Install Desktop App
    • Connect your machine to the Exa Network
Powered by GitBook
On this page
Edit on GitHub
  1. Getting Started with ExaDrive SDK

Install SDK

Once you have set up your project's codebase, you can easily integrate the ExaDrive SDK into your application. The SDK is available as an npm package, providing a seamless installation process.

Install using npm

To install the ExaDrive SDK using npm, run the following command in your project directory:

// Install using npm

npm install exadrive-sdk

OR

Install using Yarn

If you prefer using Yarn as your package manager, you can install the ExaDrive SDK with this command:

// Install using yarn

yarn install exadrive-sdk

Setting Up the SDK

After installing the package, you need to initialize the ExaDrive SDK in your application. This involves creating an instance of the ExaDrive object using your unique APP_ID and API_KEY.

Importing the SDK

First, import the ExaDrive class from the installed package:

import { ExaDrive } from 'exadrive-sdk';

Initializing the SDK

Create an instance of the ExaDrive object by providing your APP_ID and API_KEY:

const exaDrive = new ExaDrive(
      '<Your APP_ID>',
      '<Your API_KEY',
    );

Replace '<Your APP_ID>' and '<Your API_KEY>' with the actual credentials provided to you by ExaDrive.

Once initialized, you can use the exaDrive object to access various SDK functionalities throughout your application.

PreviousIntroductionNextUpload Files

Last updated 8 months ago