Skip to content

b0c1/scalajs-play-core-react

Repository files navigation

Build Status

ScalaJS and Play base project with React and MDL

This branch is using ScalaJS - React with MDL in the client side

This project using Macwire for dependency injection and ignore Play layout.

The frontend-backend communication is based on autowire and boopickle

The application structure

The application has three parts.

  • shared
  • server
  • client

Shared

The shared directory contains the frontend and backend shared codes. We put here the communication objects and the API traits.

Server

This is the play's server directory. The application overrides the default play application loader because it's using MacWire for dependency injection and Play SIRD for the routing.

Depth

The application's loading is started in the GlobalApplicationLoader class. The BuiltInComponentFromContextWithPlayWorkaround class is a workaround to Play, because Play doesn't handle well the big file upload, if you don't use guice for dependency injection. The Routing is in the ApplicationComponents class, this file depend to the Controller and Service trait which contains the dependent classes.

The ApiController methods will handle the different API calls. Each api entry point must exists in the ApplicationComponents router (See sampleApi call)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published