mirror of
https://github.com/karust/openserp.git
synced 2026-08-05 16:53:54 +08:00
Radme and default configs fix
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -21,4 +21,6 @@ raw.go
|
||||
dev.md
|
||||
.gitignore
|
||||
logrus.txt
|
||||
logs.txt
|
||||
logs.txt
|
||||
.release
|
||||
core/test/
|
||||
|
||||
11
README.md
11
README.md
@@ -3,14 +3,13 @@
|
||||
|
||||
[](https://goreportcard.com/report/github.com/karust/openserp)
|
||||
[](https://pkg.go.dev/github.com/karust/openserp)
|
||||
<!-- 
|
||||
 -->
|
||||
|
||||
[](https://github.com/derailed/k9s/releases)
|
||||
<!--  -->
|
||||
API access for search engines results if available isn't free.
|
||||
|
||||
Using OpenSERP, you can get search results from **Google**, **Yandex**, **Baidu** via API or CLI!
|
||||
|
||||
See [Docker](#docker), [CLI](#cli) usage examples below.
|
||||
See [Docker](#docker) and [CLI](#cli) usage examples below.
|
||||
|
||||
## Docker usage <a name="docker"></a> 🐳
|
||||
* Run API server:
|
||||
@@ -18,13 +17,13 @@ See [Docker](#docker), [CLI](#cli) usage examples below.
|
||||
# Use prebuilt image
|
||||
docker run -p 127.0.0.1:7000:7000 -it karust/openserp serve -a 0.0.0.0 -p 7000
|
||||
|
||||
# Or
|
||||
# Or build one and run using docker-compose.yaml
|
||||
docker-compose up --build
|
||||
```
|
||||
|
||||
### *Example request*
|
||||
Get 20 **Google** results for `hello world`, only in English:
|
||||
```JSON
|
||||
```
|
||||
GET http:/127.0.0.1:7000/google/search?lang=EN&limit=20&text=hello world
|
||||
```
|
||||
You can replace `google` to `yandex` or `baidu` in query to change search engine.
|
||||
|
||||
@@ -5,4 +5,4 @@ app:
|
||||
verbose: true
|
||||
timeout: 15
|
||||
head: false
|
||||
leakless: true
|
||||
leakless: false
|
||||
|
||||
@@ -3,7 +3,8 @@ version: '3'
|
||||
services:
|
||||
openserp:
|
||||
container_name: serp
|
||||
image: openserp
|
||||
build:
|
||||
context: .
|
||||
ports:
|
||||
- 7000:7000
|
||||
command: serve -a 0.0.0.0 -p 7000
|
||||
command: serve -a 0.0.0.0 -p 7000 -v -l
|
||||
Reference in New Issue
Block a user