Skip to content

An entire Java / Spring start for your project with User, Login, Spring Security, OpenAPI documentation and Cloudflare Protection.

License

Notifications You must be signed in to change notification settings

eliezerjg/Business-System-Shell

Repository files navigation

In First Place

Coffee is good and i like it, if i helped you by some way:

Business System Shell - Multiplatform Monolith Backend

This project includes:

Properties:

  • Production and Development profile

  • Spring Security Endpoints Protection:

  • Public Registration and login
  • Customer protected endpoint by authentication
  • Cloudflare DNS protection filter

  • Tests:

  • Junit 4 Unit Tests
  • Mockito for mocking

  • Authentication:

  • JWT Bearer Token

  • Exception Handling:

  • Default treatments for exception handling (with http status codes)

  • Documentation:

  • Swagger UI / Spring DOC.

  • Steps to get started:

  • 1 - Change the default private token in Auth for multiple instances.
  • 2 - Protect your FrontEnd with Cloudflare DNS.
  • 3 - Follow the Structures folder and add your business logic.
  • 4 - Feel free to use this version for personal use or open source projects and contribute for this project.
  • 5 - Remember to set up the users Role for your business logic.

  • For (FrontEnd / Mobile) Developers:

    So we have this flux to implementation:

    1 - Customer (Register / Login) ==> Get JWT TOKEN

    2 - Simulate the sessions storing this token until receive unauthorized

    3 - If unauthorized => FORCE LOGIN AGAIN => SAVE THE JWT


    For better use:

  • 1 - Run the tests and give a look at Postman Collection.
  • 2 - SWAGGER DOCUMENTATION (run the project): https://localhost:8080/swagger-ui/index.html .