-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add instructions in README on how to run api locally
- Loading branch information
Showing
1 changed file
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,23 @@ | ||
# Enhanced Preprints encoda server | ||
|
||
This project contains a light http wrapper around the stencial encoda library, to be used as a standalone microservice in the EPP import pipeline. | ||
This project contains a light http wrapper around the stencila encoda library, to be used as a standalone microservice in the EPP import pipeline. | ||
|
||
## Building the docker image | ||
|
||
Run `docker build -t epp-encoda --target prod .` | ||
|
||
## Running the docker image | ||
|
||
Run `docker run -p 3000:3000 epp-encoda` | ||
|
||
## Convert JATS to json with api | ||
|
||
```bash | ||
cat [LOCATION OF JATS XML] | curl -X POST --data @- http://localhost:3000/ | ||
``` | ||
|
||
## Convert JATS to json with api target a specific encoda version | ||
|
||
```bash | ||
cat [LOCATION OF JATS XML] | curl -X POST -H "Accept: application/vnd.elife.encoda.v1.0.1+json" --data @- http://localhost:3000/ | ||
``` |