Skip to content

submanio/subman-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Service for fast subtitle searching.

Chrome extension sources.

Api

For search send GET request like:

http://subman.io/api/search/?query=file-name

Available params:

  • lang — language, by default used english;
  • source — source id, by default used -1 (equals all);
  • limit — limit of result, by default used 100;
  • offset — result offset, by default used 0.

For bulk search send POST request to http://subman.io/api/bulk-search/ with transit-encoded body with:

  • queries — list of queries to search;
  • source — source id, by default used -1 (equals all);
  • limit — limit of result, by default used 100;
  • offset — result offset, by default used 0.

All languages with subtitles count available in:

http://subman.io/api/list-languages/

All sources with names available in:

http://subman.io/api/list-sources/

You can get total subtitles count in:

http://subman.io/api/count/

For decoding api response you should use transit.

Installation

First you need to install lein, bower, mongodb and elasticsearch.

Then install deps:

lein deps
lein bower install

Prepare assets:

lein cljsbuild once dev
lein cljx

And run with:

lein ring server

For building jar run:

lein ring uberjar

For running server side tests run:

lein test

For client side test install phantomjs and run:

lein cljsbuild test

Deploy

For testing local changes you need to build docker image:

docker build -t submanio/subman-web .

Releases

No releases published

Packages

No packages published