项目作者: ssysm

项目描述 :
A Lightweight, RESTful API CMS system
高级语言: JavaScript
项目地址: git://github.com/ssysm/restcms.git
创建时间: 2018-02-11T04:17:51Z
项目社区:https://github.com/ssysm/restcms

开源协议:GNU General Public License v3.0

下载


REST CMS

A Lightweight, Simple, RESTful API CMS system

Setup

Dependencies

  • MongoDB v3.4+
  • NodeJS v9.3.0+

Configuration

  • Copy config.js.example to config.js
  • Edit config.js
    • database:MongoDB Connection URI, default:mongodb://localhost:27017/restcms
    • jwtSecret:Secret for JWT Token, default:restcms HIGHLY RECOMMEND TO CHANGE THIS DUE TO SECURITY ISSUE!
  • npm install
  • node migrate.js
    • Default admin username:admin
    • Default admin password:password

      Run

Run API Server

(No npm install,assume you did everything in Configuration)

  1. $ npm run start

API Server Listen @ port 3000 (Port can be changed in /bin/www)

Compile API Documentation

  1. $ cd docs
  2. $ npm install
  3. $ npm run build

Compiled API Documentation @ /docs/index.html