Literature management WebApp for SE2 Backend: Javalin project: https://javalin.io/ Frontend: React.js: https://reactjs.org
mvn clean compile exec:java
mvn assembly:assembly
-> Directory target/
contains generated Jar file
(ensure Jar file was built and is present)
docker build -t test/litmgmt .
this copies the jar file, save file and HTML directory into the container
- Attached mode:
docker run --rm -t -i -p 80:80 test/litmgmt:latest
- Detached mode:
docker run -d --name litmgmt -p 80:80 test/litmgmt:latest
-- Stop and remove:docker stop litmgmt
,docker rm litmgmt
curl -X POST -H "Content-Type: application/json" -d '{"name":"john","password":"wayne", "email":"[email protected]"}'
http://localhost/api/register
curl -X POST -H "Content-Type: application/json" -d '{"name":"john","password":"wayne"}'
http://localhost/api/login
curl -H "Accept: application/json" -H "Authorization: Bearer 1F13D80A228FCAC0EA32ACAF8BD47E3BBBD66F28"
http://localhost/api/collections
(replace token)
curl -X POST -H "Accept: application/json" -H "Authorization: Bearer 1F13D80A228FCAC0EA32ACAF8BD47E3BBBD66F28" -d '{"name":"col01"}'
http://localhost/api/collections
curl -X POST -H "Accept: application/json" -H "Authorization: Bearer 1F13D80A228FCAC0EA32ACAF8BD47E3BBBD66F28" -d '{"citeKey":"myCiteRef2018", "entryType":"article", "fields":[{"fieldType": "author", "value":"Jim Raynor"}, {"fieldType":"address", "value":"Tarsonis"}]}'
http://localhost/api/collections/0/entries
For a complete list of operations, see Swagger API specification! Further CURL commands can be found in the REST endpoint documentation, see "JavalinServer.java", l.71 ff.