Giter Site home page Giter Site logo

wuchunfu / gogo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zenuo/gogo

0.0 1.0 0.0 1.69 MB

「勾勾」是一个搜索工具,搜索结果基于谷歌和Startpage,致力于「安全和简洁」的搜索体验。

HTML 74.03% Go 1.75% Shell 0.71% JavaScript 0.99% TypeScript 11.06% Less 3.05% Rust 8.04% Dockerfile 0.37%

gogo's Introduction

「勾勾」是一个搜索工具,搜索结果基于谷歌搜索,致力于「安全、简洁」的搜索体验。

实例列表

强烈感谢webbillion同学的域名服务🤗🎉

如何使用

本程序通过网页命令行Web API三种方式提供服务。

1 网页

首页截图:

home.png

搜索页面截图:

search.png

2 命令行

请到Release页面下载可执行程序,并重命名为gogo-cli,放置到PATH路径下

$ gogo-cli github 1

截图如下:

cli.png

3 API

搜索

$ curl -X GET -k "http://localhost:4998/api/search?q=github&p=1"
{
  "result": [
    {
      "name": "The world's leading software development platform · GitHub",
      "url": "https://github.com/",
      "desc": "GitHub brings together the world's largest community of developers to discover, share, and build better software. From open source projects to private team ..."
    }
  ],
  "error": null
}

关键词提示

$ curl -X GET -k "http://localhost:4998/api/lint?q=github"
{
  "result": [
    "github",
    "github<b> desktop</b>",
    "github<b> stock</b>",
    "github<b> microsoft</b>",
    "github<b> pages</b>",
    "github<b> api</b>",
    "github<b> tutorial</b>",
    "github<b> login</b>",
    "github<b> markdown</b>",
    "github<b> gist</b>"
  ],
  "error": null
}

上手

1 Docker

# 拉取镜像
$ docker pull zenuo/gogo
# 创建容器
$ docker create -p 4999:4999 --name gogo zenuo/gogo
# 复制配置文件到容器(可选)
$ docker cp config.json gogo:/opt/gogo/application.json
# 运行镜像
$ docker start gogo
# 查看日志(可选)
$ docker logs -f gogo

2 从源代码构建

$ git clone https://github.com/zenuo/gogo.git
$ cd gogo/gogo-server
$ cargo build -rv
$ ./target/release/gogo-server config

参考

gogo's People

Contributors

dependabot[bot] avatar webbillion avatar zenuo avatar

Watchers

 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.