For Windows, if you can't install Docker Desktop due to legal or policy reason, please follow this instruction to setup environment
- Install JDK 17
- Install docker and docker compose
- Please use https://dockerproxy.net as the docker registry mirror if you have problem with pulling images from Docker Hub
- Please add the following host names into your hosts file
127.0.0.1 mysql.tool.net
127.0.0.1 mongodb.tool.net
127.0.0.1 mock-server.tool.net
127.0.0.1 web-driver.tool.net
127.0.0.1 web-driver-video.tool.net
127.0.0.1 host.docker.internal
127.0.0.1 redis.tool.net
- Start environment for running tests of web (x86)
cd env/compose/dc_pc
docker compose up web
After environment started, you should be able to access the chrome for running tests at http://localhost:7900. Just click the connect button
Also, you can access the database at http://localhost:20000 with username admin
and password 123456
. The database name is db
.
If you are running tests of android, please connect your device or local emulator and then run docker compose up android
.
./gradlew bootRun
./gradlew.bat bootRun
After run the application, you can open the application at http://localhost:10081
And, the swagger document is available at http://localhost:10081/swagger-ui/index.html
cd logistics
./gradlew bootRun
cd ..
SPRING_PROFILES_ACTIVE=standalone-dev,logistics-api ./gradlew bootRun
cd logistics
gradlew.bat bootRun
cd ..
$env:SPRING_PROFILES_ACTIVE="standalone-dev,logistics-api"
gradlew.bat bootRun