Code Monkey home page Code Monkey logo

litmgmt's Introduction

litmgmt

Literature management WebApp for SE2 Backend: Javalin project: https://javalin.io/ Frontend: React.js: https://reactjs.org

Build and run server in development:

mvn clean compile exec:java

Assemble .jar file with all dependencies:

mvn assembly:assembly -> Directory target/contains generated Jar file

Build Docker container:

(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

Run Docker 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

Some CURL commands for testing:

Register user:

curl -X POST -H "Content-Type: application/json" -d '{"name":"john","password":"wayne", "email":"[email protected]"}' http://localhost/api/register

Log in user:

curl -X POST -H "Content-Type: application/json" -d '{"name":"john","password":"wayne"}'http://localhost/api/login

Get all collections of that user:

curl -H "Accept: application/json" -H "Authorization: Bearer 1F13D80A228FCAC0EA32ACAF8BD47E3BBBD66F28" http://localhost/api/collections (replace token)

Create a new collection:

curl -X POST -H "Accept: application/json" -H "Authorization: Bearer 1F13D80A228FCAC0EA32ACAF8BD47E3BBBD66F28" -d '{"name":"col01"}'http://localhost/api/collections

Create an entry in a collection:

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.

litmgmt's People

Contributors

cbrgm avatar zerkaner avatar

Watchers

 avatar  avatar

litmgmt's Issues

[EPIC] uc-004-c Eintrag ansehen

In Schritt 1 des Mainflows oder Alternative Flows 1

  1. Der Anwender kann einen Eintrag auswählen. Die Details des Eintrags
    werden zusammen mit der Liste angezeigt.

[EPIC] uc-003-a Eintrag anlegen und bearbeiten

  1. Falls ein Eintrag bearbeitet werden soll, wird dieser geladen und alle
    Felder entsprechend belegt.
  2. Der Anwender kann die Felder eingeben.
  3. Der Anwender kann den Eintrag speichern.
  4. Die Eingabe wird überprüft. Falls die Überprüfung fehlt schlägt, wird
    eine Meldung ausgegeben und der Anwender muss den Fehler korrigieren.
    Er wird wieder zu Schritt 2. verwiesen.
  5. Falls ein neuer Eintrag angelegt werden soll, wird dieser erstellt.
    Ansonsten wird der vorhandene Eintrag aktualisiert.

[EPIC] uc-001-a Loginvorgang

  1. Der Anwender gibt Name und Passwort ein.
  2. Beides wird an den Server übertragen und dort verifiziert.
  3. Bei erfolgreicher Verifizierung wird der Anwender angemeldet. Ansonsten
    wird wieder Schritt 1 ausgeführt.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.