Socket
Book a DemoInstallSign in
Socket

froncubator-bridge

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

froncubator-bridge

pre-alpha version of Adminstration Panel FroncubatorBridge

0.0.71
latest
npmnpm
Version published
Maintainers
1
Created
Source

install

npm install froncubator-bridge

requires

Yout should install "mongoose": "5.2.4". Because current version mongoose of Froncubator Bridge, save state of models and connect models to admin panel.

const express = require('express');
const app = express();

// set static path to show uploaded files in admin panel
app.use('/admin/static/uploads', express.static(`${__dirname}/uploads`))

// connect models before init froncubator bridge module
require('./models/user');
require('./models/post');

// init froncubator bridge
// after that, you can open "HOST/admin" in your browser.
// when your open "/admin" first time, you can create "superadmin" account

require('froncubator-bridge')(app, {
  uploadDir: `${__dirname}/uploads`,
  logsDir: `${__dirname}/logs`,
  mongo: {
    models: `${__dirname/models}`,
    url: 'mongo://127.0.0.1',
    port: 27017,
    dbName: process.env.mongodbName,
    user: process.env.mongodbUser,
    pass: process.env.mongodbPass,
    auth: true
  } 
});

app.listen(3000);

FAQs

Package last updated on 11 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.