- Check out project
- Run
./gradlew clean eclipsein terminal - In Eclipse:
File -> Import -> General -> Existing Projects into Workspaceand choose the root folder of this repository - In Eclipse: Find
DmpGeneratorApplication.javaand right-click thenRun As -> Java Application
The webapp should now run at http://localhost:8080
Html/Css/Javascript files are located at src/main/resources/static
The following API endpoints are implemented:
Orcid Search
http://localhost:8080/orcid/search?q=Marc%20Dietrichstein
Orcid Profile Retrieval
http://localhost:8080/orcid/profile/0000-0003-4890-3498
Zenodo Metdata Retrieval
http://localhost:8080/oai_pmh/record/?identifier=10.5281/zenodo.1209833&type=doi
Github Repository Info
http://localhost:8080/github/owner/mdietrichstein/repository/digitalpreservation-dmp
or
http://localhost:8080/github/owner/mdietrichstein/repository/digitalpreservation-dmp?ref=1.0.0
- Build a docker image:
./gradlew build docker - Run it:
docker run -p 8080:8080 at.ac.tuwien.digital_preservation_2018.group2_4.fair/dmp-generator - Open
http://localhost:8080in your browser
The Github API might stop working due to limitations on their unauthenticated API access.
To force the app to use authenticated Github API requests you have to set the GITHUB_USERNAME and GITHUB_PASSWORD environment variables:
docker run -e GITHUB_USER='YOUR_GH_USER' -e GITHUB_PASSWORD='YOUR_GH_PW' -p 8080:8080 at.ac.tuwien.digital_preservation_2018.group2_4.fair/dmp-generator