Skip to content

Vibify Client

Once the server is up and running, you can set up the client to send requests to the server.

Install

Terminal window
npm i @vibify/vibify

Prerequisites

Set the following environment variables in your .env file in the root of your project.

.env
VIBIFY_API_URL="YOUR_API_URL" # The URL of the server you set up
APPLICATION_ID="YOUR_APPLICATION_ID" # The same application id you used to set up the server

Usage

import { Vibify } from '@vibify/vibify';
import dotenv from 'dotenv';
dotenv.config();
const vibify = new Vibify(process.env.VIBIFY_API_URL, process.env.APPLICATION_ID);