Skip to content

NINAnor/elfiske-database

Repository files navigation

Configuration

Secrets

Generate passwords and tokens randomly:

docker compose --file setup/docker-compose.yml build
docker compose --file setup/docker-compose.yml run --rm setup

Run

docker compose --env-file secrets/docker --env-file secrets/tokens up --build

Use the API

Import CSV data

source secrets/tokens
curl http://localhost:3000/import \
    -H "Authorization: Bearer $WRITER_TOKEN" \
    -H "Content-Type: text/csv" \
    --data-binary @- < file.csv