Vibify Client
Once the server is up and running, you can set up the client to send requests to the server.
Install
npm i @vibify/vibify
Prerequisites
Set the following environment variables in your .env
file in the root of your project.
VIBIFY_API_URL="YOUR_API_URL" # The URL of the server you set upAPPLICATION_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);