Skip to content

Eluinhost/hosts.uhc.gg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend

All in /frontend

Install

yarn install

Build production

Builds optimised bundles to /frontend/build for the backend to serve

yarn build

Build dev

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)

Backend

Build production zip

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.

Development

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