Skip to content

Repository files navigation

Climate Solutions App

Minimal implementation for the Code/Work Challenge: Climate Adaptation Solutions.

Quick start (macOS, python3.11+):

  1. Create a virtualenv and install requirements:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
  1. Run migrations and import sample data:
python manage.py migrate
python manage.py import_solutions
  1. Run tests:
pytest -q
  1. Run server:
python manage.py runserver

API endpoints:

  • GET /api/solutions/ - list (supports ?category=&country=&tag=)
  • GET /api/solutions/{pk}/ - retrieve
  • GET /api/solutions/export_csv/ - export current filtered set as CSV
  • POST /api/import-csv/ - multipart upload with 'file' field (CSV)

Data sample: /data/solutions.csv (20+ rows)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages