silvestreh / kbjs

A simple Knowledge Base CMS written in JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KBjs

A simple Knowledge Base CMS written in JavaScript.

Requirements

KBjs doesn't require much

  • Node 4.x
  • MongoDB

There's also a docker-compose.yml which you can use to start a MongoDB instance using Docker.

Install

KBjs is split into two main parts: Client, and Server. You'll have to build the client to use it.

Client

It's pretty easy:

cd client/
npm install
npm run build

The built client will be placed in server/public.

Server

Things are similar to the client, except you don't have to build anything. Fire up a terminal emulator and…

cd server/
npm install
npm start

That's it. The server should be up and running and listening to port 3030.

Production

Building the client and starting the server using PM2 in production environments is as easy as opening a terminal and running…

npm start

This will build the client and run the server in cluster mode to take advantage of all your CPU cores. Please note that you need to install dependencies first, so…

cd client/
npm install
cd ../server
npm install

Here's the full list of scripts to manage your KBjs instance:

npm start       # Build the client and starts the server
npm run restart # Rebuilds and restarts
npm run stop    # Stops all Node processes for KBjs
npm run deploy  # Pulls changes from Git and restarts all processes

About

A simple Knowledge Base CMS written in JavaScript

License:MIT License


Languages

Language:JavaScript 64.2%Language:CSS 22.3%Language:HTML 10.9%Language:Vue 2.6%