To run this project go to its root directory and them execute the following steps:
- Start docker containers
docker-compose up
- This command will start a MySQL server and Adminer. Go to http://localhost:8081 to access adminer. Credentials
can be found at
docker-compose.yml
file
- Start web server
./gradlew run
To build the project run ./gradlew build
. This will run tests and build the project. If you're interested in only
generating a WAR file you can run ./gradlew bootWar
. The generated WAR file will be located at ./build/libs
directory.
To run tests first make sure you have docker containers running (or at least another MySQL server running). Then
run: ./gradlew check
to run both unit and integration tests.
You can also run ./gradlew test
to run only unit tests or ./gradlew integrationTest
to run only integration tests.
With you're using Intellij IDEA you can use the run configurations already set up at ./run
directory.
You can import the postman collection java_graphql_example.postman_collection.json
and run the requests in order
to manually test the API.