sq-core

2.4.20 • Public • Published

sq-core

Core framework for web, plugin, cms & nodejs server

npm npm

Demos

Download and Install sq-core

Install from npm

npm install sq-core

Available Modules

At present, we officially aim to support give 3 modules

  • Web (React)
  • CMS Server
  • Vannila JS

CMS Server

require('dotenv').config();
var express = require('express');
var path = require('path');
var fs = require('fs');
var http = require('http');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var session = require('express-session');
var { utils} = require('sq-core/server');
var { ContentServer } = require('sq-core/cms');

var routes = require('./routes');
var config = require('../config/environment');
var webConfig = require('../src/config');
var siteConfig = require('./site.config');

var app = express();

// Content server
var cmsSever = new ContentServer(
  {
    contentPath: path.resolve('./content'),
    serverPath: '/content/*',
    siteConfig: siteConfig,
    damAssets: path.resolve('./dam'),
    clientLibs: path.resolve('./clientlibs'),
    rootApp: path.resolve('./'),
    envConfig: config,
    mode: config.env,
    siteConfig: siteConfig
  },
  app
);
// cms initialization
cmsSever.init();
cmsSever.mapVanity(webConfig.urlMapping, {
  defaultPage: '/in/reactapp'
});

License

This project is licensed under the terms of the MIT license.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.4.202latest

Version History

VersionDownloads (Last 7 Days)Published
2.4.202
2.4.180
2.4.170
2.4.160
2.4.150
2.4.140
2.4.130
2.4.120
2.4.110
2.4.100
2.4.90
2.4.80
2.4.70
2.4.60
2.4.50
2.4.40
2.4.30
2.4.20
2.4.10
2.4.00
2.2.30
2.2.20
2.2.00
2.1.10
2.1.00
2.0.80
2.0.40
2.0.30
2.0.20
1.0.80
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10

Package Sidebar

Install

npm i sq-core

Weekly Downloads

2

Version

2.4.20

License

MIT

Unpacked Size

20 MB

Total Files

1454

Last publish

Collaborators

  • nybblecore