No Description

bic 1c8aaa0b92 Drop fetch-all 3 weeks ago
migrations 0c633f4e32 small refactor 1 week ago
src 1c8aaa0b92 Drop fetch-all 1 week ago
tests 1c8aaa0b92 Drop fetch-all 1 week ago
.gitignore 4452cfa676 Add basic diesel support 1 week ago
Cargo.lock 8a1186f403 partial name search works 1 week ago
Cargo.toml 8a1186f403 partial name search works 1 week ago
Readme.md 839c2858be todo list 1 week ago

Readme.md

TrSeek Service

Features

Seems working

Api

ENDPOINT: api/v1 POST insert GET fetch/<infoash> GET search/<query>

Database

It's not clear, but it works

Todo

  • search api
  • review database structure
  • extension support
  • search test (breacking, regex, etc)
  • multithread tasks

Setup

rustup override set nightly-2018-05-14
cargo build
cargo test
diesel migration run
cargo run

Test

echo DATABASE_URL=postgres://postgres:password@localhost/diesel_demo > .env
docker run -p 5432:5432 --name postgres -e POSTGRES_PASSWORD=password -d postgres
cargo test