A fork from yohangz/scala-play-react-seed that includes TypeScript and modernizes some things--for example, uses hooks, async/await instead of callbacks, etc.
Use play framework to develop the web application backend/services and frontend using React Create App, all in a totally integrated workflow and single unified console. This approach will deliver perfect development experience without CORS hassle.
Read more @ http://bit.ly/2A1AzEq and see the repo this is forked from at Scala Play React Seed for more documentation.
The easiest way to get this to run is to use 2 terminals. In the first, make sure you're in the project's root directory and run:
$ ./sbt run
This will open a browser window with an error. Hang on...
In a second terminal, also at the project's root directory,
$ cd ui
$ npm start
Now you should see a running app. Notice that the time near the top is actually loaded by making a call to the Play app. You can change the path by clicking on the logos, but only the text after "Current Route" is updated. Similarly, you can click the time's Reset button, but only the time is updated, not the whole page.