All in /frontend
yarn install
Builds optimised bundles to /frontend/build
for the backend to serve
yarn build
Builds development bundles and listens for changes for recompilation. Runs on port 3000
yarn start
When running dev frontend make sure there is a server running on port 10000 (or modify src/setupProxy for actual port)
Make sure to run the frontend build first to have latest assets in the zip
With SBT:
;clean;universal:packageBin
Zip can be found in /target/universal
When unpackaged an application.conf
must be created in the /conf
folder using reference.conf
as an example.
All keys are optional and reference.conf
shows you what values they will fallback to.
Watches for backend changes are re-compiles + re-starts the server.
Make sure to make an application.conf
in the /conf
folder.
With SBT:
~re-start
Alternatively use re-start
and re-stop
to manually start/stop the backend server and not listen for changes