$ git clone https://github.com/gitcoinco/search
$ cd search
$ poetry install
Note: installation might currently be broken on some systems, see https://github.com/python-poetry/poetry/issues/8458 for workarounds.
Copy .env.example
to .env
and customize it.
Run:
poetry run task dev
Useful URLs:
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
Run local production build:
poetry install --without dev --no-root && rm -rf /tmp/poetry_cache
Customize env variables in fly.production.toml
.
Build and deploy to Fly:
$ fly -c fly.production.toml deploy