cmsone-api
v1.1.28
Published
Simple light weight node-express based CMS Web API
Downloads
11
Readme
CMS One API
Simple light weight node-express based API wrapper
Installation:
- Add auth.json with any authkey at data/ folder. (this key will be used while configuring CMS from GUI)
- Add emails.json with noreply email and noreplyName title at root directory. (Open sample emails.json for ref)
npm install cmsone-api --save
Setup your API
const express = require('express');
const app = express();
const { Main } = require('cmsone-api');
Main.setup(app, {
production: {
MONGODB_CONNECTION: 'mongodb+srv://XXXX:[email protected]/XXXX',
HAS_CERT: false,
DATABASE_NAME: 'XXXX',
EMAILID: '[email protected]',
EMAIL_PASSWORD: 'password'
}
});
Features:
- Works with express.js and mongo as database.
- Provides basic APIs like Admin, Tracker, Analysis, NewsLetters etc.
- Easily extend by writing your APIs
- Works best with CMS One website (fronend helper for your CMS)