Skip to content

Commit

Permalink
Provide a make target for importing a specific article
Browse files Browse the repository at this point in the history
  • Loading branch information
discodavey committed Jan 8, 2025
1 parent b2379c5 commit cdbec31
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
.PHONY: dev test
.PHONY: dev test import-article

dev:
docker compose up

test:
docker compose run --rm app ./project_tests.sh

import-article:
docker compose run app ./bin/import $(ARTICLE_ID)
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ This contains a dummy implementation of the [eLife 2.0 API](https://github.com/e

## Import article

For example to import the article with ID 85111:
```$sh
docker compose run app ./bin/import 09560
make import-article ARTICLE_ID=85111
```

The above command should result in a data fixture for article 09560 being created at `data/articles/09560.json`
The above command should result in a data fixture for article 85111 being created at `data/articles/85111.json`

## Run locally

Expand Down

0 comments on commit cdbec31

Please sign in to comment.