![]() Server(optional) - An object with details, mainly used to carry out oauth authentication from any of the enabled providers above. Please see the list of supported providers. ProviderOptions(optional) - An object containing credentials ( key and secret) for each provider you would like to enable. This option can be used in place of redisUrl. RedisOptions(optional) - An object of options supported by redis client. The stored upload would be sent back to the client on reconnection. This helps for resumed uploads after a browser crash from the client. If this is set, the state of uploads would be stored temporarily. RedisUrl(optional) - URL to running Redis server. Host : "localhost:3020", // or įilePath(required) - Full path to the directory to which provider files would be downloaded temporarily. const express = require ( 'express' ) const bodyParser = require ( 'body-parser' ) const session = require ( 'express-session' ) const companion = require ( ) const app = express ( ) Īpp. app method, passing in an options object as a parameter. To plug Companion into an existing server, call its. Install from NPM: npm install you don’t have a Node.js project with a package.json you might want to install/run Companion globally like so: npm install -g UsageĬompanion may either be used as a pluggable express app, which you plug into your already existing server, or it may simply be run as a standalone server: Plugging into an already existing server ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |