This application allows user to login, create/read/delete users (for logged in users only)
Postman collection for testing is available in source files
Preconditions: Java 8, Maven 3.5+, Docker (including docker-compose) should be installed.
Steps to run:
- Download source files;
- Run 'mvn clean package' command in root folder ('demo-app');
- Run 'docker-compose build';
- Run 'docker-compose up';
- Open Postman collection;
- Default created user has username: "user" and password "password";
- After logging in using POST request to 'localhost:8080/api/auth/login' you can use provided token for next requests;
- Put token into header with key 'Authorization' and prefix 'Bearer_' in value field;
P.S. Frontend is not provided (I had no time to create it).
P.P.S Logout is not implemented as it requires something like Redis to blacklist tokens.
P.P.S. I had lack of time to write unit tests. Probably I will add them later to this repository