aaronlinv / bbuddy-java-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BBuddy Java Api

Database

Installing MySQL Or using Docker

docker run -d -p 3306:3306 -e "MYSQL_ALLOW_EMPTY_PASSWORD=yes" --name "bbuddy_mysql" mysql --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-allowed-packet=67108864

Create dba with privileges

Wait for mysql has been fully initialized.

 mysql -u root -h 127.0.0.1 -P 3306 < sql/create_default_dba.sql

Run

Use this command to run

./gradlew bootRun

Add SPRING_PROFILES_ACTIVE=test environment variable to run for test purpose (cucumber)

SPRING_PROFILES_ACTIVE=test ./gradlew bootRun 

Lombok plugin

If you are using IntelliJ, install lombok plugin and enable annotation processing lombok

About


Languages

Language:Java 99.1%Language:Dockerfile 0.9%