https://www.youtube.com/watch?v=CZcoKflJwlw
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Java 11
Maven 3.6.1
Docker 19.03.5
AWS S3 credentials
https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_credentials_profiles.html
1 - Create plain text file "credentials" on /.aws folder;
2 - Paste the following content with your own credentials:
[default]
aws_access_key_id = YOUR_AWS_ACCESS_KEY_ID
aws_secret_access_key = YOUR_AWS_SECRET_ACCESS_KEY
$ docker network create quarkus-hackaton-network
$ docker-compose up
Open http://localhost:3030 (sometimes it takes ~2 minutes to run)
Open Connectors > New > PostgresConnector > Paste "be-source-connector.properties" content > Create
$ mvn compile quarkus:dev
Run BE application w/ live reload (don't forget to set your AWS S3 credentials file on /.aws/credentials location):
$ mvn compile quarkus:dev
$ mvn package -Pnative -Dquarkus.native.container-build=true -Dquarkus.native.builder-image=limadelrey/quarkus-hackaton-graalvm-with-python
Run Apache Bench stress tests:
$ ab -n 1000 -c 10 http://localhost:8081/api/v1/image-classification
Useful endpoints:
- POST http://localhost:8081/api/v1/image-classification
- GET http://localhost:8081/api/v1/image-classification
- GET http://localhost:8081/api/v1/image-classification/{id}
- DELETE http://localhost:8081/api/v1/image-classification/{id}
- GET http://localhost:8081/api/v1/notifications
- GET http://localhost:8080/health
- GET http://localhost:8080/metrics
- GET http://localhost:8080/open-api
- GET http://localhost:8080/swagger-ui
Access UI:
Access Swagger UI:
Access Kafka:
Access Prometheus:
Access Jaeger: