mirror of https://git.crlf.ninja/CRLF/dex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pwm
13aca142f4
|
10 months ago | |
---|---|---|
dex | 10 months ago | |
.gitignore | 11 months ago | |
Pipfile | 10 months ago | |
Pipfile.lock | 10 months ago | |
README.md | 11 months ago | |
SPEC.md | 10 months ago | |
config.toml | 11 months ago | |
dex.sql | 10 months ago |
README.md
Dex
Dex is a prototype federated search aggregator. It will query peers and show results from them.
Deployment
Requirements
- Redis
- sqlite3 cli tools
- pipenv: pipenv will install all your dependencies for you. If you have a clean environment, like a container, you can just pip install everything listed underneath the requirements section manually. Python 3.11 is all that's tested.
$ git clone https://git.crlf.ninja/CRLF/dex.git
$ pipenv install
$ pipenv shell
$ sqlite3 dex.sqlite < dex.sql
$ rq worker 2>&1 > .worker.log & # this will start the federation worker and put it in the background
$ sanic dex.app
A simple page indexing command is provided (not a full spider)
$ pipenv shell
$ python3 -m dex index "https://example.com/page-to-index"
It will probably not throw an error, and the indexed text content will be searchable via the web interface, and by other search nodes who send a request, and who have a compatible response endpoint waiting.