App backend - Adopt a Pet
- Java 17
- Gradle
- H2 database
- Spring Boot 3
- Spring Webflux
- Spring Data R2DBC
-
Install Java/JDK 17 (https://adoptium.net/) - mark the option to set o JAVA_HOME, if possible.
-
In terminal, clone this repository with
git clone
command.Example,
git clone https://github.com/brucemelo/pet-adopt.git
-
In terminal, go to the project folder
cd pet-adopt/
command. -
In the root folder of project, open terminal and run
./gradlew bootRun
.
- Open new window in terminal and test with commands above.
curl -X POST --location "http://localhost:8080/api/pets/indexing"
curl -X GET --location "http://localhost:8080/api/pets/search"
curl -X GET --location "http://localhost:8080/api/pets/search?term=dog+1"
curl -X PUT --location "http://localhost:8080/api/pets/1/available"
curl -X PUT --location "http://localhost:8080/api/pets/1/adopt"
curl -X GET --location "http://localhost:8080/api/pets/search?status=Available"
curl -X GET --location "http://localhost:8080/api/pets/search?status=Adopt"
MIT
The code in this repository is covered by the included license.