booru

command module
v0.0.0-...-4ebaa52 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

README

booru: A Classic Imageboard

Setup

Docker
$ docker-compose up

Note that this command use default installation configuration described in the docker_config.json. There are default admin credentials in there, so make sure to change it.

Standalone

The project is built with golang, but you can create a custom client in any language you want, since booru also works as a rest api. By default booru will serve html which leverages golang templates.

# Creating database (postgresql)
su - postgres
createdb dbname
Configuration file

Most of the fields are quite self explanatory. But the restApi field means that the server won't serve html templates, but instead JSON. This means you can build your own client, but use booru as the back-end.

// config.json
{
    "port": "8080",
    "adminAccess": true,
    "databaseHost": "localhost",
    "databasePort": "5432",
    "databaseUser": "postgres",
    "databasePass": "postgres",
    "databaseName": "dbname",
    "adminLogin": {
        "username": "admin",
        "password": "password"
    },
    "restApi": true
}
Running the code
go run main.go

Contributions

Feel free to create a pull request if you want to change anything, we can go from there.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL