https://github.com/jade-press/jade-press
cms based on mongodb, nodejs, koa, vue and more
https://github.com/jade-press/jade-press
jade-press
Last synced: 8 months ago
JSON representation
cms based on mongodb, nodejs, koa, vue and more
- Host: GitHub
- URL: https://github.com/jade-press/jade-press
- Owner: jade-press
- License: mit
- Created: 2016-04-24T16:52:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-06-20T01:40:30.000Z (over 7 years ago)
- Last Synced: 2025-04-28T16:16:27.714Z (8 months ago)
- Topics: jade-press
- Language: JavaScript
- Homepage:
- Size: 347 KB
- Stars: 41
- Watchers: 6
- Forks: 9
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-vue - jade-press - cms based on mongodb, nodejs, koa, vue and more ` 📝 3 years ago ` (Open Source [🔝](#readme))
- awesome-vue-zh - 玉压 - 基于mongodb,nodejs,koa,vue等的Cms. (awesome-vue [](https://github.com/sindresorhus/awesome) / 开源)
- awesome-vue - jade-press ★36 - Cms based on mongodb, nodejs, koa, vue and more. (Awesome Vue.js [ ★101652](https://github.com/sindresorhus/awesome) / Open Source)
- awesome-vue - jade-press - Cms based on mongodb, nodejs, koa, vue and more. (Projects Using Vue.js / Open Source)
- awesome-vue - jade-press - Cms based on mongodb, nodejs, koa, vue and more. (Awesome Vue.js [](https://github.com/sindresorhus/awesome) / Open Source)
README
# jade-press
[](https://travis-ci.org/jade-press/jade-press)
cms based on mongodb, nodejs, koa, vue and more
## features
- based on mongodb(database and session), nodejs 6+, koa, vue.js...
- built in jade editor
- file upload (to mongodb gridfs), insert, manage
- custom routes
- plugin system
- theme system
- user system
- user groups and custom access control based on url
- post and category
- custom style & script & features file/image for every post
- can be used as a module to extend
- auto-database-update between different versions
## baisc use
```bash
# make sure your mongodb running,
# visit https://www.mongodb.com/download-center?jmp=nav#community for more info
# make sure cairo installed,
# visit https://github.com/Automattic/node-canvas/wiki/_pages for system spec
# install nodejs & npm,
# visit https://github.com/creationix/nvm
git clone git@github.com:jade-press/jade-press.git
cd jade-press
npm install
cp config-sample.js config.js
# read and edit config.js to define all the settings
# install plugins if have plugins
gulp install
# run it
node app
```
then visit (by default) [http://127.0.0.1:7200](http://127.0.0.1:7200)
## use jade-press as a module
```javascript
//config.js
//.... other setting
,theme: {
path: __dirname
,name: 'your-name'
,version: 'xx.xx.xx'
}
//.... other setting
```
```javascript
//app.js
/*!
* main entrance
**/
'use strict'
let init = require('jade-press').init
,co = require('co')
,config = require('./config')
co(init(config))
.then(function(app) {
let port = config.local.port
app.listen(port, '127.0.0.1', function() {
console.log('' + new Date(), config.local.siteName, 'runs on port', port)
})
}, function(err) {
console.error(err.stack || err)
})
```
example:
[https://github.com/jade-press/blog.jade-press.org](https://github.com/jade-press/blog.jade-press.org)
## themes
check the examples:
[basic theme: jadepress-theme-pi](https://github.com/jade-press/jadepress-theme-pi)
[react spa theme(react, redux, history api)](https://github.com/jade-press/jadepress-react-spa)
[vue spa theme(vue1.x, vuex, vue-router)](https://github.com/jade-press/jadepress-vue-spa)
## plugin
check the examples:
[https://github.com/jade-press/jadepress-plugin-qr](https://github.com/jade-press/jadepress-plugin-qr)
[https://github.com/jade-press/jadepress-redis](https://github.com/jade-press/jadepress-redis)
[https://github.com/jade-press/jadepress-static](https://github.com/jade-press/jadepress-static)
## todo
visit [issues](https://github.com/jade-press/jade-press/issues)
## license
MIT