Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
binjie09 authored Mar 24, 2023
1 parent 9c7ba93 commit cd3f30e
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# duckduckgo-api

## Use vercel
[https://duckduckgo-api.vercel.app/search?q=啊对对对是什么梗&max_results=3](https://duckduckgo-api.vercel.app/search?q=啊对对对是什么梗&max_results=3)

使用vercel部署的本项目,免费,但是vercel免费用量用完就无了

可点下方按钮部署到自己的Vercel

[![Deploy to Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/binjie09/duckduckgo-api)

Expand All @@ -24,7 +30,8 @@

</details>

use docker
## Self host
###use docker

```
docker run -p 8000:8000 binjie09/duckduckgo-api
Expand All @@ -50,8 +57,10 @@ then get `http://localhost:8000/search?q=啊对对对是什么梗&max_results=3`
}
]
```

### self host
```bash
git clone https://github.com/binjie09/duckduckgo-api.git
cd duckduckgo-api
python3 -m venv myenv && source myenv/bin/activate && pip install -r requirements.txt
gunicorn -b 0.0.0.0:8000 app:app
```
```

0 comments on commit cd3f30e

Please sign in to comment.