$ git clone https://github.com/gitcoinco/search
$ cd search
$ poetry install
Note: installation might currently be broken on some systems, see python-poetry/poetry#8458 for workarounds.
Copy .env.example
to .env
and customize it.
Run:
poetry run task dev
Useful URLs:
- a UI testbed http://localhost:8000/static/index.html
- API docs: http://localhost:8000/docs
Run tests one-shot:
poetry run task test
Run tests continuously:
poetry run task test_watch
Build locally:
$ docker buildx build . --platform=linux/amd64 -t gitcoin-search
Customize env variables in fly.production.toml
.
Build and deploy to Fly:
$ fly -c fly.production.toml deploy