Monoture is a simple blogging application for Node.js. Easy to extend for developers and even easier to use for writers.
$ npm install monoture --save
Monoture ships with an installation script that will set the project up;
$ monoture install
The script will create a few directories, a standard
env.js environment file and register an admin user with a randomised password. Users can be added, updated and deleted via the command line (see below).
Monoture can also be started using the command line;
$ monoture run
By default this will start Monoture on
http://localhost:3000. The dashboard can be accessed at
Starts an instance of the Monoture application. Handy if you're not directly accessing the internal API.
Installs Monoture onto the parent package by creating folders, default configuration and users.
Lists all registered user accounts.
Creates a new user with the provided username and password.
Deletes a user.
Updates the specified user with a new password.
Monoture exposes all the content via an external RESTful API. This is protected by a bearer token which can only be obtained after successful login.
Currently only the
Post model is presented by the API;
Monoture also provides an internal API that allows developers to implement custom functionality and themes;
Allows a custom theme to be passed through and bound to the underlying Express.js application.
Starts Monoture, similar to running
monoture run from the command line.
Monoture uses Pug by default for page layouts and theming. Monoture is configured with multiple
public directories, which allows templates to be easily extended and overwritten.
Monoture will always check the main package first, and then fallback to the theme directories.
Typically a theme must implement a main home page and a post page. See monoture-theme for reference.