AZdev is a Java-based implementation of the concepts presented in the book GraphQL In Action by Samer Buna. The original source code for the book is written in Node.js, and this project aims to replicate the same functionality using Spring Boot.
- Java
- Spring Boot
- GraphQL
- Gradle
- Java 21
- Gradle
- PostgreSQL
-
Clone the repository:
git clone https://github.com/DevRuibin/AZdev.git cd AZdev
-
Set up the database:
- Ensure PostgreSQL is installed and running.
- Ensure MongoDB is installed and running.
- Create a database for the project.
- Update the database configuration in
application.properties
.
Note: Thankfully, the author of the book provides two containers for testing purposes. you can find the docker compose file in the
resources
folder. -
Build the project:
./gradlew build
-
Run the application:
./gradlew bootRun
To run the tests, use the following command:
./gradlew test