This project makes use of the Plume ecosystem main modules:
- Plume Framework: the lightweight modular Java framework
- Plume Admin: provides Jersey web services to build an administration area
- Plume Admin UI AngularJS: a JavaScript frontend for Plume Admin written with AngularJS.
- Plume File: a group of modules to manage files
/!\ Note that the JS frontend AngularJS application is updated only to the minimum to get the demo working. To build an admin frontend, you should use React or the latest version of Angular.
Just launch the org.plume.demo.WebApplication
class and open http://localhost:8080/ in your browser.
If it is not already the case, you will also have to configure your IDE to support Lombok.
Open http://localhost:8080/admin/ in your browser. In the login screen, the credentials are:
- login: admin
- password: admin
It is available through the URL:
- for the public area: http://localhost:8080/webjars/swagger-ui/2.2.10-1/index.html?url=/api/swagger
- for the admin area: http://localhost:8080/webjars/swagger-ui/2.2.10-1/index.html?url=/api/swaggerAdmin
Then the browser should prompt for credentials:
- login: plume
- password: rocks
To test an administration web-service like GET /admin/city
:
- Call the
POST /admin/session
web-service with the credentials admin//admin - Copy the JWT token returned
- At the top of the Swagger page, click on the Authorize button
- Type in the popin:
Bearer <the copied token from step 2>
and hit the Authorize button - Your done, you can call any web-service that require an administration access!