Simple login example using Java Dropwizard.
- Java 1.7
- Maven
To build:
mvn package
To run jar:
java -jar target/login-0.0.1-SNAPSHOT.jar server login-service.yml
-
Point DB config at database matching the schema sql in db\schema.sql
-
Create the yaml configuration file containing the DB config, login-service.yml
-
Post to http://localhost:8080/session with valid values for fields 'username' and 'password' to try out.