GeoffSelby / laravel-forge-javascript-sdk

A complete, promise-based Javascript SDK for the Laravel Forge API

Home Page:https://laravel-forge-js-sdk.netlify.app

Repository from Github https://github.comGeoffSelby/laravel-forge-javascript-sdkRepository from Github https://github.comGeoffSelby/laravel-forge-javascript-sdk

Laravel Forge JavaScript SDK

Travis (.com) npm

A complete, asynchronous Javascript SDK for the Laravel Forge API

Installation

With yarn (recommended):

yarn add @geoffcodesthings/forge-js

With npm:

npm install @geoffcodesthings/forge-js

Basic Usage

import Forge from '@geoffcodesthings/forge-js';

// Instantiate the SDK
const forge = new Forge('API_TOKEN_HERE');

// List all servers
try {
  const servers = await forge.servers.list();
  console.log(servers);
} catch (error) {
  console.log(error);
}

Documentation

Full documentation can be found here.

License

This project is open-sourced software licensed under the MIT license.

About

A complete, promise-based Javascript SDK for the Laravel Forge API

https://laravel-forge-js-sdk.netlify.app

License:MIT License


Languages

Language:JavaScript 100.0%