Skip to content

Latest commit

 

History

History
98 lines (58 loc) · 2.54 KB

README.md

File metadata and controls

98 lines (58 loc) · 2.54 KB

reactive-products

"How can I die, when I have so much of the Universe left to explore?" - Stephen Hawking

Make breuninger products reactive.

Roadmap

  • include font into service-worker

Setup

Use IntelliJ for coding.

  1. Install jdk10 on you machine
  2. Install and start mongodb on you machine
  3. Open the cloned github folder and the gradle import wizard should pop up.

Dependencies

Install client dependencies:

$ yarn install

Production

Build client:

$ yarn build

Build server:

$ gradle build

Start server:

$ java -jar build/libs/reactive-products.jar

Endpoints

Development

Start client watcher:

$ yarn start

Start server:

$ gradle bootRun [--debug-jvm]

You may need to set jvm args if using java 10

$ --illegal-access=deny --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED

Testing

Test client

$ yarn test

Test server

$ gradle test

Dependency Update

Client dependencies:

$ yarn dependency-update

Server dependencies:

$ gradle dependencyUpdates -Drevision=release

Known java 10 problems

Gradle

To make gradle work with jdk10 you have to run it with jdk8 and set the compiling jdk path to 10. You can do this by putting this into your ~/.gradle/gradle.properties: org.gradle.java.home=/path_to_jdk10

When running gradle tasks you then have to set -Djava.endorsed.dirs= as shown in this example:

$ gradle bootRun -Djava.endorsed.dirs=