Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Latest commit

 

History

History

plume-demo-full-guice-jersey

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

⚠️ This project has been replaced by https://github.com/Coreoz/Plume-showcase ⚠️

A demo application of the whole Plume ecosystem

This project makes use of the Plume ecosystem main modules:

/!\ 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.

Running the application

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.

Administration area

Open http://localhost:8080/admin/ in your browser. In the login screen, the credentials are:

  • login: admin
  • password: admin

Swagger documentation

It is available through the URL:

Then the browser should prompt for credentials:

  • login: plume
  • password: rocks

To test an administration web-service like GET /admin/city:

  1. Call the POST /admin/session web-service with the credentials admin//admin
  2. Copy the JWT token returned
  3. At the top of the Swagger page, click on the Authorize button
  4. Type in the popin: Bearer <the copied token from step 2> and hit the Authorize button
  5. Your done, you can call any web-service that require an administration access!