Skip to content

oen9/scalajs-slinky-http4s-starter

Repository files navigation

scalajs-slinky-http4s-starter

Build Status

Libs

backend

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

frontend

  1. scalajs
  2. slinky (react)
    scalajs-react-http4s-starter for scalajs-react
  3. diode
  4. bootstrap
  5. circe

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.