8000 GitHub - nlfiedler/tanuki: Personal digital asset management application
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

nlfiedler/tanuki

Repository files navigation

Tanuki

An application for collecting, tagging, browsing, and searching assets, primarily images and videos. Written in Rust with a Leptos powered front-end and limited GraphQL support. Metadata is stored in either RocksDB, DuckDB, or SQLite and file content is stored unmodified within a date/time formatted directory structure.

Building and Testing

Prerequisites

Initial Setup

The following commands need to be run one time before building this project. Note that cargo-leptos is installed with the --locked option to prevent build errors due to incompatible crates.

cargo install --locked cargo-leptos
rustup target add wasm32-unknown-unknown

Windows

Download the Microsoft C++ Build Tools and select the MSVC ... build tools (latest version with appropriate architecture) and Windows 11 SDK (or 10 if using Windows 10).

Testing

Run both the backend and front-end tests wi 7A1A th one command:

cargo leptos test

Run all backend tests:

cargo test --features=ssr

Run a single backend test:

cargo test --features=ssr test_location_from_str

Starting the server locally

cargo leptos watch

The server will be listening at http://localhost:3000

The GraphiQL interface is available at http://localhost:3000/graphiql

Tools

Formatting

Use cargo fmt to format all of the Rust code.

Use leptosfmt to format the client-side code, like so:

leptosfmt src/preso/leptos/**/*.rs

Finding Outdated Crates

Use https://github.com/kbknapp/cargo-outdated and run cargo outdated -R

Origin of the name

A tanuki is a racoon dog native to Japan, and may also refer to the Bake-danuki, a shape-shifting supernatural being of Japanese folklore. That has nothing to do with this project, but the name is unique and it makes for a cute mascot.

About

Personal digital asset management application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
0