Skip to content

ishucr7/query-server

Repository files navigation

Query-Server

Build Status Dependency Status Join the chat at https://gitter.im/fossasia/query-server

Query server that stores a query or string on a server. This mini-tool can be used to process a query string. This string calls the search engine result scraper at searss and the output from the scraper is written to a file, named with the query string as file name.

Deploy

Table of Contents

Dependencies

Installation

Make sure you have Nodejs installed. Running this tool requires installing the nodejs as well as python dependencies.

$ git clone https://github.com/fossasia/query-server.git 
$ cd query-server
$ npm install
$ pip install -r requirements.txt

To set up MongoDB on your server :

 $ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
 $ echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
 $ sudo apt-get update
 $ sudo apt-get install -y mongodb-org
 $ sudo service mongod start

Usage

To run the query server:

$ npm start

Then head over to http://localhost:7001 in your browser.

Contribute

Found an issue? Post it in the issue tracker

Releases

No releases published

Packages

No packages published

Languages

  • Python 55.8%
  • HTML 39.7%
  • CSS 4.5%