Skip to content

r3v3l/silence.cloud

Repository files navigation

Silence.Cloud

This is a starter application that shows how Play works. Please see the documentation at https://www.playframework.com/documentation/latest/Home for more details.

Running

Run this using sbt. If you downloaded this project from http://www.playframework.com/download then you'll find a prepackaged version of sbt in the project directory:

sbt run

And then go to http://localhost:9000 to see the running web application.

Controllers

There are several demonstration files available in this template.

  • HomeController.java:

    Shows how to handle simple HTTP requests.

  • AsyncController.java:

    Shows how to do asynchronous programming when handling a request.

  • CountController.java:

    Shows how to inject a component into a controller and use the component when handling requests.

Components

  • Module.java:

    Shows how to use Guice to bind all the components needed by your application.

  • Counter.java:

    An example of a component that contains state, in this case a simple counter.

  • ApplicationTimer.java:

    An example of a component that starts when the application starts and stops when the application stops.

Filters

  • ExampleFilter.java

    A simple filter that adds a header to every response.

Models and cruds

  • BaseModel.java

    BaseModel contains only id, createdAt and updatedAt definitions. BaseModel has been annotated a MappedSuperclass.

  • StatusModel.java

    StatusModel implements applications statuses.

  • StatusModelCrud.java

    StatusModelCrud interface implements sample crud operations of StatusModel.

  • RoleModel.java

    RoleModel implements application roles.

  • RoleModelCrud.java

    RoleModelCrud interface implements sample crud operatios of RoleModel.

  • ModuleModel.java

    ModuleModel implements application modules.

  • ModuleModelCrud.java

    ModuleModelCrudInterface implements crud operations of ModuleModel.

Repositories

  • repositories.core.StatusRepository.java

    StatusRepository implements non-blocking database crud operations of StatusModel.

  • repositories.core.StatusRepositoryInterface.java

    StatusRepositoryInterface implements abstract methods of StatusRepository.

  • repositories.core.RoleRepository.java

    RoleRepository implements non-blocking database crud operations of RoleModel.

  • repositories.core.RoleRepositoryInterface.java

    RoleRepositoryInterface implements abstract methods of RoleRepository.

  • repositories.core.ModuleRepository.java

    ModuleRepository implements non-blocking database crud operations of ModuleModel.

  • repositories.core.ModuleRepositoryInterface.java

    ModuleRepositoryInterface implements abstract methods of ModuleRepository.