cmsone-website
v1.5.3
Published
Simple light weight node-express based CMS Website
Downloads
7
Readme
CMS One Website
Simple light weight node-express based CMS Website
Installation:
npm install cmsone-website --save
const { Main } = require('cmsone-website');
Serverside setup
const express = require('express');
const app = express();
Main.setup(app, {
production: {
MONGODB_CONNECTION: 'mongodb+srv://XXXX:[email protected]/XXXX',
HAS_CERT: false,
DATABASE_NAME: 'XXXX',
EMAILID: '[email protected]',
EMAIL_PASSWORD: 'password'
}
});
// Setup custom error pages
Main.setErrorPages(app);
Clientside setup
- Copy and Paste public folder to your public root directory
- Specify valid API_URL from
public\js\environment.js
- Add auth.json with any authkey at data/ folder. (this key will be used while configuring CMS from GUI)
- Navigate to
/admin
from browser to complete setup using GUI.
<!-- Add following scripts to your public html pages to enable tracking and analysis -->
<script src="/vendor/jquery/3.5.1/jquery-3.5.1.min.js"></script>
<script src="/js/common/polyfill.min.js"></script>
<script src="/js/environment.js"></script>
<script src="/js/final/bundle.min.js"></script>
Features:
- Works with express.js and mongo as database.
- Provides features like Tracking.
- Easily extend by writing your APIs.
- Contact Us, News letter management, Custom error pages etc.
- Works best with CMS One API (backend helper for your CMS)