https://github.com/ayeshlk/delivery-service
Application to update and retrieve delivery information
https://github.com/ayeshlk/delivery-service
graphql kotlin springboot2 springwebflux
Last synced: about 2 months ago
JSON representation
Application to update and retrieve delivery information
- Host: GitHub
- URL: https://github.com/ayeshlk/delivery-service
- Owner: ayeshLK
- License: apache-2.0
- Created: 2022-04-20T23:50:08.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-21T06:14:21.000Z (about 4 years ago)
- Last Synced: 2025-06-19T05:28:38.429Z (12 months ago)
- Topics: graphql, kotlin, springboot2, springwebflux
- Language: Kotlin
- Homepage:
- Size: 72.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Delivery Service Application
Service to retrieve and update delivery details.
## Deployment Setup
- This application is using logging. Please set up the logging path which could be found in `logback.xml` before running the application.
### Running locally
To build the project execute following command.
```shell script
./gradlew build
```
Then to start the server:
* Run `DeliveryServiceApplication.kt` directly from your IDE
* Alternatively you can also use the spring boot plugin from the command line.
```shell script
./gradlew bootRun
```
Once the app has started you can explore the example schema by opening the GraphQL Playground endpoint at http://localhost:9090/playground.
#### Query for Current Delivery Information
- Go to GraphQL playground URL from your browser.
- Run following query:
```
query {
deliveries(status: NOT_RECEIVED) {
deliveryId
status
}
}
```
#### Update the status of the delivery information
- Go to GraphQL playground URL from your browser.
- Run following mutation:
```
mutation {
updateDeliveryStatus(deliveryId: "101", status: RECEIVED) {
deliveryId
status
}
}
```