Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 1.17 KB

File metadata and controls

38 lines (23 loc) · 1.17 KB

Mangaloid Instance

C++ Implementation of Mangaloid instances.

Requirements

To compile this instance, you will need the Drogon HTTP application framework. You will also need its dependency libraries.

Furthermore, you need the Meson build system, CMake, the MagickWand ImageMagick C API, Botan, and the fmt C++20 formatting library.

Setup

#generate the database (optional)
sqlite3 database.db < schema.sql

#build
meson build
ninja -C build

Usage

Read config.json for instructions on how to configure your instance.

build/instance

NOTE: schema.sql comes with debug data

Admin API

POST /mod/login takes a json object with the fields "name" and "pass" as argument, and returns a JSESSIONID cookie.

POST /mod/manga, DELETE /mod/manga, and PUT /mod/manga take a manga encoded as a json object.

POST /mod/chapter, DELETE /mod/chapter, and PUT /mod/chapter take a chapter encoded as a json object.