# Darius - MDPAD backend

Darius is part of MDPAD project.

[![Build Status](](

A simple server to hold markdown documents for your small company or personal use.

## Synopsis

* Download binary or `go get`.
* Create [config.json](
* `darius config.json`

API specification see [](

## Configuration

* SiteRoot: Site root url with tailing slash. eg: ``.
* FrontEnd: Local path you put frontend files. eg: `../frontend` or `/srv/mdpad/frontend/build`
* Listen: Parameter pass to [http.ListenAndServe]( The address and port to bind.
* DBType: Database driver, can be `sqlite3` or `mysql`.
* DBConStr: DB connection string, varies according to `DBType`.
* RedisAddr: Redis server connection string.
* SessSecret: SALT for session, type some random string here.
* SessName: Session name prefix.
* GoogleKeyFile: Where to find your google OAuth credential. This file must be in json format, which can be downloaded from Google Developer Console.
* ValidEditor: Emails of valid pad creators, comma-separated. eg: `,`. Leave blank if everyone can create pad.

## Darius?

Darius is a blue whale. He is 17 years old, lives in Antarctic Ocean and travels to Southern Atlantic Ocean every winter.

Imports 7 package(s) ΒΆ