Giter Site home page Giter Site logo

nerzhul / searchserver Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 228 KB

A NodeJS searchserver which look at remote searchserver, cleanup the result and show it to current user, using AngularJS interface

License: BSD 2-Clause "Simplified" License

CSS 19.88% JavaScript 48.09% HTML 17.17% Go 14.86%

searchserver's Introduction

SearchServer

SearchServer is a NodeJS/AngularJS web application which can substitute Google by fetching results from it, cleaning it and showing them to the user in a proper way.

It offer the possibility to register interesting permitting to retrieve them fast if you research them another time.

SearchServer supports OpenSearch then you can add it as a browser search engine.

Prerequisites

  • PostgreSQL 9.5 or greater
  • Elasticsearch 1.0 or higher

How to install

  • Install NodeJS & npm

Debian/Ubuntu:

apt-get install node npm

FreeBSD:

pkg install nodejs npm
  • Clone the repository in /usr/local/www or /var/www, depending of your OS
  • Launch server.js from node.js
git clone https://github.com/nerzhul/searchserver.git /usr/local/www
cd /usr/local/www
npm install
  • Configure your postgresql database

Debian/Ubuntu:

apt-get install postgresql9.5-server
su - postgres

FreeBSD

pkg install postgresql95-server
su - pgsql

Create your user & database

createdb searchserver
createuser searchuser -P
psql searchserver
create table interesting_link (
	ip inet NOT NULL,
	url TEXT NOT NULL,
	terms VARCHAR(1024) NOT NULL,
	content TEXT NOT NULL,
	title VARCHAR(256) NOT NULL,
	PRIMARY KEY (ip,url,terms,content,title)
);
grant insert, select on interesting_link to searchuser;

How to use

Configure your database by copying config.js.example and changing the PostgreSQL chain

Launch NodeJS:

node server.js

Connect to the server on http://localhost:8080/

Resources

JS

CSS

Fonts

  • Roboto (Google's Android)

searchserver's People

Contributors

nerzhul avatar

Stargazers

David Salbeï avatar

Watchers

 avatar James Cloos avatar  avatar

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.