1.0.0 • Published 3 years ago

renesis v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Renesis-AI

Renesis is a server integration for Node.js file uploader.

It handles the server-to-server communication between your server and file storage providers such as Google Drive, Dropbox, Instagram, etc. Renesis is not a target to upload files to. For this, We are going to introduce Renesis server (if you want resumable) or your existing Apache/Nginx server.

Install

npm install renesis

If you don't have a Node.js project with a package.json you might want to install/run Renesis globally like so: [sudo] npm install -g renesis@1.x (best check the actual latest version, and use that, so (re)installs are reproducible, and upgrades intentional).

Usage

renesis-ai may either be used as pluggable express app, which you plug to your already existing server, or it may simply be run as a standalone server:

Plug to already existing server

var express = require('express')
var bodyParser = require('body-parser')
var session = require('express-session')
var renesis = require('renesis')

var app = express()
app.use(bodyParser.json())
app.use(session({secret: 'some secrety secret'}))
...
// be sure to place this anywhere after app.use(bodyParser.json()) and app.use(session({...})
const options = {
  providerOptions: {
    google: {
      key: 'GOOGLE_KEY',
      secret: 'GOOGLE_SECRET'
    }
  },
  server: {
    host: 'localhost:3020',
    protocol: 'http',
  },
  filePath: '/path/to/folder/'
}

app.use(renesis.app(options))



```bash
npm start

Check our website for more details Rensistech