CoolFace
Apppublic

danbiagini/sportsoil

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes
App README

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

Dev install virtual environment -- python 3.11.5

python -m venv .venv```

Update requirements.txt

pip freeze > requirements.txt```

## Manual Testing
To run in google cloud shell: 

To run in docker:

docker compose up```

To run locally:

Local database setup

  1. 1.To reset DB with latest migrations (as needed)
  2. 2.``docker compose --profile migrate up migration``

## Unit Tests

  1. 1.pytest

To run spiders

Install the dependencies in tools/scrapers

  1. 1.Create a venv
  2. 2.``cd tools/scrapers``
  3. 3.``python -m venv .scrapers_venv``
  4. 4.Install dependencies (below is just a guess)
  5. 5.``pip install -f requirements.txt``
  6. 6.Run crawl
  7. 7.``cd ice_scrapers``
  8. 8.``scrapy crawl associations -a association_csv_file=<csv file with associations>``

Development Setup

Python Dependencies

  • —Production dependencies: pip install -r requirements.prod.txt
  • —Development dependencies: pip install -r requirements.dev.txt
  • —Full development setup: pip install -r requirements.txt