Skip to content

tarbadev/witchcraft

Repository files navigation

Witchcraft Witchcraft

Set Up

  1. Run the setup.sh script to install mysql, create the spring user, witchcraft and witchcraft_test databases
  2. Load build.gradle to import project in IntelliJ

Run the project

  1. To build the React Frontend, run ./gradlew webpack. If you want it to watch for changes, run ./gradlew webpackWatch
  2. To run the server, run ./gradlew bootrun. It should install dependencies, build the sources, generate the javascript for react and run the server.
  3. The application is served at localhost:8080 by default

Run the tests

  • Run all tests: ./gradlew test
  • Run only React tests: ./gradlew testReact
  • Watch for React test changes: ./gradlew testReactWatch

Troubleshoot

Fix spring boot warning

In case you use java 9, you will probably have this warning message

WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1

To fix it, add argument to JVM --illegal-access=deny

Using Java 10

Lombok library is not working with Java 10, that's why lombok-edge.jar is used. Need to watch for lombok 1.16.21

MySql

Last version of MySql encrypts passwords by default, need to use this command line to create the user: CREATE USER 'spring'@'localhost' IDENTIFIED WITH mysql_native_password BY '<PASSWORD>';

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published