https://github.com/siddhesh321995/cmsone-api
CMS One API Code base
https://github.com/siddhesh321995/cmsone-api
api cms nodejs
Last synced: 2 months ago
JSON representation
CMS One API Code base
- Host: GitHub
- URL: https://github.com/siddhesh321995/cmsone-api
- Owner: siddhesh321995
- License: mit
- Created: 2020-09-07T09:41:55.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-04T17:05:30.000Z (over 5 years ago)
- Last Synced: 2025-08-23T22:09:38.336Z (10 months ago)
- Topics: api, cms, nodejs
- Language: JavaScript
- Homepage:
- Size: 108 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CMS One API
> Simple light weight node-express based API wrapper
[](https://travis-ci.com/siddhesh321995/cmsone-api)

[](https://coveralls.io/github/siddhesh321995/cmsone-api?branch=master)
## 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:XXXX@XXXX-XXXX.mongodb.net/XXXX',
HAS_CERT: false,
DATABASE_NAME: 'XXXX',
EMAILID: 'XXXX@gmail.com',
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)