~mendelmaleh/dummy

a396b155400c425ab99e147f2a76023e0d78221b — Mendel E 1 year, 1 month ago 928a478
Rename main cmd to dummyserver
5 files changed, 9 insertions(+), 6 deletions(-)

M .gitignore
M README.md
R cmd/{server/api.md => dummyserver/api.md}
R cmd/{server/main.go => dummyserver/main.go}
R cmd/{server/options.go => dummyserver/options.go}
M .gitignore => .gitignore +3 -3
@@ 3,6 3,6 @@
*.prof
*.test
dummy
cmd/server/server
cmd/server/fonts
cmd/server/config.toml
cmd/dummyserver/fonts
cmd/dummyserver/config.toml
cmd/dummyserver/dummyserver

M README.md => README.md +6 -3
@@ 3,15 3,18 @@ A simple placeholder image generator. Supports specifying width, height, and
colors. Soon text, fonts, font size, and patterns.

## install
To install the web service:

```
go get git.sr.ht/~mendelmaleh/dummy
go get git.sr.ht/~mendelmaleh/dummy/cmd/dummyserver
```

## config
The config uses the TOML format. You should define the `address:port` it runs on,
and its pattern root endpoint.

Additionally, a directory with fonts is required, with minimum one font, set as the default. Ensure the `fonts` value has a trailing slash.
Additionally, a directory with fonts is required, with minimum one font, set as
the default. Ensure the `fonts` value has a trailing slash.

```
[dummy]


@@ 22,7 25,7 @@ font = "Open Sans"
```

## usage
The API is documented [here](./cmd/server/api.md).
The API is documented [here](./cmd/dummyserver/api.md).

## examples


R cmd/server/api.md => cmd/dummyserver/api.md +0 -0
R cmd/server/main.go => cmd/dummyserver/main.go +0 -0
R cmd/server/options.go => cmd/dummyserver/options.go +0 -0