pzzz / come2help-server

REST-Webservice: Project for recruiting and coordinating volunteer people.

Home Page:http://come2.help/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

come2help Server

come2.help is a project for recruiting and coordinating volunteer people. Possible scenarios are flooding or coordinating support for political refugees.

Content and Usage

This is only a REST API for the server. The frontend is not part of this repository. For usage please care about the LICENSE file.

Setup

  1. Fork the repository for development. Implementations can be submitted by a Pull-Request.

  2. Clone the repository to a local directory.

  3. Import it to a IDE (e.g. IntelliJ) of your choice (or use vim).

  4. Add a local mysql user and database, the default data can be found in application.properties. Do not use this authentication data for production use.

  5. First build a jar file, this can be done with:

mvn package
  1. Execute the binary:
java -jar target/come2help-server-0.0.1-SNAPSHOT.jar
  1. Execute a request against the REST-API. For example use a REST-Client extension for your browser. For testing you can use the following curl command line:
curl http://localhost:8080/users/1

The result should be the user with the ID 1 (if there is no one, create it with PUT and the URI http://localhost:8080/users. Data can be transmitted as JSON.

Api documentation

Check http://localhost:8080/jsondoc-ui.html and enter "http://localhost:8080/jsondoc" for the json api documentation. It gives an overview over the api. The playground is enabled to submit json objects easily.

mvn clean package -Pdistributable
creates an offline api documentation in target/jsondoc-distribution.zip.

Contact

For further contact mail valentin.zickner(at)helfenkannjeder(dot)de, visit http://come2.help/ or create a ticket.

About

REST-Webservice: Project for recruiting and coordinating volunteer people.

http://come2.help/

License:GNU General Public License v3.0


Languages

Language:Java 100.0%