Skip to content

toddobryan/scala-play-react-typescript-seed

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scala Play React TypeScript Seed

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.

Version Summary

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.

About

❄️ Java Play 2.8.x + React seed project with TypeScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 35.3%
  • TypeScript 28.4%
  • Scala 25.1%
  • HTML 4.7%
  • Batchfile 3.9%
  • CSS 2.6%