GithubHelp home page GithubHelp logo

estorrent's Introduction

ES torrent

A search frontend for local The Pirate Base copy.

Prerequisites

You need to install Elasticsearch from https://www.elastic.co and ICU plugin from https://github.com/elasticsearch/elasticsearch-analysis-icu

Install curl to make queries on ES.

You will also need some web server, like nginx or something.

Prepare the data

Get tpb-parser from https://github.com/akashihi/tpb-parser, build it and run:

  • tpb-parser -json

It will output tpb.txt file in json format. Preparation of that file may take couple of days and file will be huge.

Or you can search internet for pre-made dumps.

Create index

Prepare Elasticsearch

You need to create custom analyzer and bind it to your type prior data indexing. Analyzer definition is in tpb-settings.json file and type mapping is in tpb-mapping.json.

Run

Orders matters.

Build tpb-index

  1. Install go

  2. Install "elastic" go get -u gopkg.in/olivere/elastic.v2

  3. Compile tpb-index

     git clone git://github.com/akashihi/estorrent.git
     cd estorrent/tpb-index
     go build .
    

Index the data.

It it highly recommended to split file into smaller parts and process those parts.

To import data from some file run:

It will take several hours or may be even days, depending on your system.

Run the frontend

Prerequisites

You will need NodeJS from https://nodejs.org

Install it and run npm install in repository's root. npm install will install almost all the software, needed to built the project. The only one exception is a Grunt command, which have to be install separately with npm install -g grunt-cli

Another one thing, that you'll have to do manually is to download google closure compiler binary and put 'compiler.jar' from it into 'build' directory. If you do not have any java runtime, please, download it and install now.

Build frontend

Run

  • grunt

It will make all preparations and put generated site and code to the app/assets/dist directory.

Prepare webserver

Frontend code expects Elastisearch server to be available on the same address as the frontend, suffixed by '/es'. Sample nginx configuration for that: location /es { proxy_pass http://127.0.0.1:9200/; }

Do not forget to make app/assets/dist available via the web.

Congratulations, everything should be working now!

License

See LICENSE file.

Copyright 2016 Denis V Chapligin [email protected]

estorrent's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

kyaroslav

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.