GithubHelp home page GithubHelp logo

ludashi2020 / xinahn-socket Goto Github PK

View Code? Open in Web Editor NEW

This project forked from asiontang/xinahn-socket

0.0 0.0 0.0 5.39 MB

一个开源,高隐私,自架自用的聚合搜索引擎。 https://xinahn.com

License: MIT License

JavaScript 100.00%

xinahn-socket's Introduction

信安搜索

Note 后端文档补齐中,若有问题请提交issue,感谢!

一个开源,高隐私,自架自用的聚合搜索引擎。 Demo点我

前后端皆为Javascript撰写,好上手,若有问题或需求请提交issue

此repo为后端代码,跑完后端之后请接着跑前端设置

目前支援的搜索引擎

搜索引擎 源码 ./utils/*.js 状态
百度 se_baiduParser.js
百科 se_baikeParser.js
必应 se_bingParser.js
谷歌 se_googleParser.js
百度知道 se_zhidaoParser.js
知乎 se_zhihuParser.js

事前准备

  1. 确认已安装Nginx以及Node.js
  2. apt install default-jre
  3. apt install chromium-driver

安装

$ git clone https://github.com/xinahn/xinahn-socket
$ cd xinahn-socket && npm install

执行API

  1. Antenna.js -> 只需跑一个,接口会跑在 port 4100 antenna.js 为一个整合所有并发的请求并且与前端沟通的脚本。
$ node antenna.js
  1. Minion.js -> 依照需求开启多个,与 Antenna.js 进行 socket 沟通。
$ node minion.js

注意:minion.js 不能跑在root。

Nginx 设置

将以下代码黏贴于 /etc/nginx/sites-available/default.conf 之中。

server {
	...
	location ^~ /api/ {
		proxy_pass http://localhost:4100;
 	}
	...
}

重新载入 Nginx 设定即可

$ service nginx reload

License

MIT

xinahn-socket's People

Contributors

northfoxz 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.