@interopio/manager
v2.0.0
Published
This package provides a way to spin up an instance of [io.Manager](https://docs.interop.io/manager/overview/index.html) from a NodeJS application and also to pass custom configurations and extensions.
Maintainers
Keywords
Readme
Overview
This package provides a way to spin up an instance of io.Manager from a NodeJS application and also to pass custom configurations and extensions.
Changelog
The changelog can be found here: Changelog
Documentation
For more information on how to use the server, please refer to the interop.io Manager documentation.
Usage
The following code shows how to start a server instance using the npm package on http://localhost:4356/api
// index.ts
import { start, type Config } from '@interopio/manager';
const config: Config = {
name: 'example',
port: 4356,
base: 'api',
// TODO: Contact us at [email protected] to acquire a license.
licenseKey: process.env.API_LICENSE_KEY as string,
store: {
type: 'mongo',
connection:
// TODO: Replace this with your own MongoDB connection string.
'mongodb://db_user:Password123$@localhost:27017/io_manager?authSource=admin',
},
token: {
// TODO: Replace this with your secret.
secret: '<YOUR_SECRET>',
},
auth_method: 'none',
// A list of usernames which will have admin privileges
auth_exclusive_users: ['admin'],
};
start(config);