@preaction/cms
Preaction CMS is a barebones, customizeable CMS built on top of simple libraries.
Last updated 10 days ago by dougelkin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @preaction/cms 
SYNC missed versions from official npm registry.

Preaction CMS

Preaction CMS is a barebones, customizeable CMS built on top of simple libraries.

Running

clone the repo:

git clone https://github.com/duhdugg/preaction-cms.git

install dependencies:

yarn

build the client:

yarn build

run the server:

yarn start

Scripts

For Admins

copy the data/db.sqlite database to a timestamped and hashed file in the data/backups directory:

yarn backup-db

delete all sessions from the database:

yarn clear-sessions

generate a new randomly-generated password for the admin user:

yarn randomize-password

set password by prompt:

yarn set-password

the above will also accept whatever is piped into it, so this example is one way to generate and set a random password that is 8,192 alphanumeric characters in length:

dd if=/dev/urandom | strings -e s | sed 's/[^a-za-z0-9]//g' | tr -d '\n' | dd count=1 bs=8192 2> /dev/null | yarn set-password

create a gzipped tarball named preaction-cms.tar.gz containing data/db.sqlite, the build directory, and any db-referenced files in the uploads directory:

yarn package

Environment Variables

PREACTION_COOKIE_SAMESITE=strict sets cookies to samesite strict

PREACTION_COOKIE_SECURE=1 sets cookies to require https

PREACTION_DB_BACKUP=1 enables automatic backup of Sqlite database

PREACTION_DB_LOGGING=1 enables logging from Sequelize ORM

PREACTION_PROXY=1 trust the X-Forwarded-Proto header

PREACTION_READONLY=1 disables all admin-required middleware

PREACTION_PATH=/preaction sets root URL for running behind nginx subdirectory

PREACTION_PORT=8080 configures the port to listen on

PREACTION_SOCKET_MODE=1 enables socket features (automatic reload)

Development

run the server with automatic reloading:

yarn dev-server

apply prettier requirements to source:

yarn makeover

run tests:

yarn test

run server with nodejs inspection:

yarn start-inspect

run server with nodejs profiling:

yarn start-profile

start the react development server for automatic client reloading:

yarn dev-client

Current Tags

  • 1.0.6                                ...           latest (10 days ago)

36 Versions

  • 1.0.6                                ...           10 days ago
  • 1.0.5                                ...           10 days ago
  • 1.0.4                                ...           15 days ago
  • 1.0.3                                ...           15 days ago
  • 1.0.2                                ...           15 days ago
  • 1.0.1                                ...           24 days ago
  • 1.0.0                                ...           24 days ago
  • 0.9.0                                ...           25 days ago
  • 0.8.2                                ...           a month ago
  • 0.8.1                                ...           a month ago
  • 0.8.0                                ...           a month ago
  • 0.3.17                                ...           4 months ago
  • 0.3.16                                ...           4 months ago
  • 0.3.15                                ...           4 months ago
  • 0.3.14                                ...           4 months ago
  • 0.3.13                                ...           4 months ago
  • 0.3.12                                ...           4 months ago
  • 0.3.11                                ...           5 months ago
  • 0.3.10                                ...           7 months ago
  • 0.3.9                                ...           7 months ago
  • 0.3.8                                ...           7 months ago
  • 0.3.7                                ...           7 months ago
  • 0.3.6                                ...           7 months ago
  • 0.3.5                                ...           7 months ago
  • 0.3.4                                ...           7 months ago
  • 0.3.3                                ...           7 months ago
  • 0.3.2                                ...           7 months ago
  • 0.3.1                                ...           7 months ago
  • 0.3.0                                ...           7 months ago
  • 0.2.6                                ...           7 months ago
  • 0.2.5                                ...           7 months ago
  • 0.2.4                                ...           7 months ago
  • 0.2.3                                ...           7 months ago
  • 0.2.2                                ...           8 months ago
  • 0.2.1                                ...           8 months ago
  • 0.2.0                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 95
Last Day 0
Last Week 21
Last Month 23
Dependencies (24)
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |