Skip to content

oen9/scalajs-react-http4s-starter

Repository files navigation

scalajs-react-http4s-starter

Build Status

Libs

backend

  1. scala
  2. cats
  3. http4s
  4. pureconfig

frontend

  1. scalajs
  2. reactjs
    scalajs-slinky-http4s-starter for slinky
  3. diode

DEV

js

fastOptJS::webpack
~fastOptJS
http://localhost:12345/js/target/scala-2.12/classes/index-dev.html

server

reStart
http://localhost:8080/

js + server (dev conf)

Run server normally reStart.
Connect your js api to http://localhost:8080 (e.g. change some baseUrl in js project).
Run js: fastOptJS::webpack and fastOptJS.
Open http://localhost:12345/js/target/scala-2.12/classes/index-dev.html in browser.
When server changed run reStart.
When js changed run fastOptJS.

hints

Remember to run fastOptJS::webpack after e.g. npmDependencies changes.