This is backend for a card designer.
- presets list available at
/list_presets
- presets themselves available at
/presets
- Upload images at
/register-design
with body of form-data with image: image and RequestJson as described insrc/......./ren_backend/RequestJson.java
Fill the needed env variables in .env
:
NSFW_DAEMON_TCP_PORT="daemon_port_probably_on_localhost"
NSFW_DAEMON_TCP_HOST="probably_localhost"
IMAGE_DB_URL="postgresql://some_host:some_port/dbname"
IMAGE_DB_USERNAME="some_username"
IMAGE_DB_PASSWORD="some_password"
IMAGE_DB_TABLENAME="probably_images"
and then just run
You can find the actual port in ./src/main/resources/application.properties
, property server.port