0.0.9 • Published 6 years ago

golb v0.0.9

Weekly downloads
6
License
MIT
Repository
-
Last release
6 years ago

Golb

A blogging platform for Node.js + Express + MongoDB.

How to use

Install Golb via npm.

npm install --save golb

Create a javascript file like:

// index.js

const golb = require('golb');

const config = {};

golb.start(config).catch(e => console.error(e.message));

Run the script file:

node index.js

API

golb.start(config)

Start the Golb web server. The method takes an object as an argument and returns a Promise object.

You can pass parameters below as attributes of the config object:

param namedefault
webPort80
webHost"localhost"
dbName"glob"
dbPort27017
dbHost"localhost"
adminApiRoot"/admin-api"
publicApiRoot"/public-api"
adminRoot"/admin"
publicRoot"/"
adminEmail"change@myemail.com"
adminPassword"changepassword"
adminDisplayName"Admin"
adminSlug"admin"
adminApiHostnamethe value of webHost
adminApiPortthe value of webPort
adminApiBasenamethe value of adminApiRoot
publicApiHostnamethe value of webHost
publicApiPortthe value of webPort
publicApiBasenamethe value of publicApiRoot

golb.stop()

Stop the web server if it's started. The method returns a Promise object.

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago