Socket
Socket
Sign inDemoInstall

cms-igo-plugin

Package Overview
Dependencies
25
Maintainers
2
Versions
84
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cms-igo-plugin

CMS plugin for Igo


Version published
Weekly downloads
184
increased by201.64%
Maintainers
2
Install size
4.23 MB
Created
Weekly downloads
 

Readme

Source

CMS Igo Plugin

A Content Management System for projects using Igo.js.

Getting started

Install and configure plugin

  • Install the plugin:
npm i cms-igo-plugin
  • Declare it in your application ./app/plugin.js
const CmsIgoPlugin = require('cms-igo-plugin');

module.exports = [
  CmsIgoPlugin
];

Declare routes

  • Edit your routes.js
const CmsIgoPlugin = require('cms-igo-plugin');

[...]

// front routes
app.use('/',        CmsIgoPlugin.routes.main);

// admin routes
app.use('/admin',   CmsIgoPlugin.routes.admin);

Import assets: Images, JS & CSS

  • Import JS (./js/vendor.js)
// Imperavi Redactor JS
require('./redactor/redactor.js');

// Cms Igo Plugin JS
require('../node_modules/cms-igo-plugin/js/admin.js');
  • Import CSS (./scss/vendor.scss)
// Imperavi Redactor CSS
@import "../js/redactor/redactor.css";
  • Import images:

Copy "./node_modules/cms-igo-plugin/public/cms" to "./public/cms"

Test

FAQs

Last updated on 21 Nov 2022

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc