https://github.com/gitcoinco/grants-stack-search
https://github.com/gitcoinco/grants-stack-search
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gitcoinco/grants-stack-search
- Owner: gitcoinco
- License: mit
- Created: 2023-10-06T13:21:01.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-12T13:41:37.000Z (about 2 years ago)
- Last Synced: 2025-07-01T18:10:48.500Z (12 months ago)
- Language: Python
- Size: 3.1 MB
- Stars: 2
- Watchers: 11
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## Installation
```sh
$ 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.
## Development
Copy `.env.example` to `.env` and customize it.
Run:
```sh
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:
```sh
poetry run task test
```
Run tests continuously:
```sh
poetry run task test_watch
```
Build locally:
```sh
$ docker buildx build . --platform=linux/amd64 -t gitcoin-search
```
## Production
Run local production build:
```sh
poetry install --without dev --no-root && rm -rf /tmp/poetry_cache
```
Customize env variables in `fly.production.toml`.
Build and deploy to Fly:
```sh
$ fly -c fly.production.toml deploy
```