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.
npm install @interopio/managerThis package provides a way to spin up an instance of io.Manager from a NodeJS application and also to pass custom configurations and extensions.
The changelog can be found here: Changelog
For more information on how to use the server, please refer to the interop.io Manager documentation.
The following code shows how to start a server instance using the npm package on http://localhost:4356/api
``typescript
// index.ts
import { start, type Config } from '@interopio/manager';
const config: Config = {
name: 'example',
port: 4356,
base: 'api',
// TODO: Contact us at sales@interop.io 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: '
},
auth_method: 'none',
// A list of usernames which will have admin privileges
auth_exclusive_users: ['admin'],
};
start(config);
``