Code for the busun.org and browncrisis.org websites.
Start the local database with
$ docker-compose up -d
Install frontend dependencies
$ brew install yarn
$ cd frontend
$ yarn
Or run Postgres locally and apply the scripts from local/postgres
with the variables in .env
# For BUSUN
$ ./gradlew busun:bootRun
# For BUCS
$ ./gradlew bucs:bootRun
This runs against the local database with production-compiled assets (minified and optimized, no hot reloading)
Create a Spring Boot run configuration with these settings:
org.brownmun.busun.App
busun_main
local,dev-assets
Also start the Webpack dev server
$ cd frontend
$ yarn run start
This configuration uses the local database and dev-compiled assets (unminified with extra debug checks, hot reloading)
Changes to frontend files will automatically be pushed to the
browser by Webpack. Intellij builds will trigger a restart of the backend
server (either Build > Make Project
or enable Make Project Automatically
)
$ ./gradlew build
Creates standalone JARs at busun/build/libs/busun-dev.jar
and bucs/build/libs/bucs-dev.jar
that can be run with
java -jar