Skip to content

Collects your favorite media and organizes them with the hierarchical tag system.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

chitoku-k/hoarder

Repository files navigation

Hoarder

Collects your favorite media and organizes them with the hierarchical tag system.

Production

Run the following command with api to run migration:

$ hoarder migration apply

Container images

$ docker buildx bake

Development

$ yarn && yarn codegen
$ docker compose up -d --build
$ docker compose exec api hoarder migration apply

Configuration

API

Global Options

  • --locale (LOCALE): Unicode locale identifier for collation order
  • --log-format (LOG_FORMAT): Log format (compact or pretty)
  • --log-level (LOG_LEVEL): Log level as in Directives

The following environment variables can be used to configure PostgreSQL connection:

  • PGHOST: Hostname
  • PGHOSTADDR: IP address
  • PGPORT: Port number
  • PGUSER: Username
  • PGPASSWORD: Password
  • PGPASSFILE: Path to the password file
  • PGOPTIONS: Command-line options
  • PGDATABASE: Database name
  • PGSSLROOTCERT: Path to the root CA
  • PGSSLCERT/PGSSLKEY: Path to the client certificate and private key in PKCS#8 format
  • PGSSLMODE: SSL mode
  • PGAPPNAME: Application name

Serve API

$ hoarder [serve] [OPTIONS]

The following command line options (or environment variables) can be used to configure API:

  • --port (PORT): Port number (required)
  • --media-root-dir (MEDIA_ROOT_DIR): Path to the media directory (required)
  • --media-root-url (MEDIA_ROOT_URL): Public URL for media
  • --tls-cert/--tls-key (TLS_CERT/TLS_KEY): Path to TLS certificate and private key for HTTPS

Manage GraphQL schema

To show GraphQL schema in SDL (Schema Definition Language):

$ hoarder schema print

Database Migration

To execute database migration:

$ hoarder migration [OPTIONS] (apply | drop | list | revert)

UI

Options

The following environment variable can be used to configure UI:

  • API_URL: Internal URL for API (required)

Testing

API

Install cargo-make first in case it's not installed.

$ cargo install cargo-make

Run all tests.

$ cargo make test

Credits

Icon

Icon made by Freepik from www.flaticon.com

About

Collects your favorite media and organizes them with the hierarchical tag system.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •