xiasiyu / oder_gen_demo

test for code and test case generation
0 stars 0 forks source link

env prepare

    docker-compose -f docker-compose.yml up -d 

login on mysql as root and grant schema 'darkhorse' PRIVILEGES to order 'test'

create schema darkhorse;
create user test@'%' identified by 'thoughtworks';
grant all privileges on *.* to test@'%';
flush privileges;

db-migration

reference flyway : create new sql file and put into classpath: db/migration.

exec DarkhorseApplication$Main method

Swagger UI http://localhost:8082/swagger-ui/index.html