Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/musabbozkurt/stock-exchange-service
PostgreSQL, Redis, Grafana, Prometheus, and Zipkin Integrations with Spring Boot 3, Java 21, and Docker. Integration Tests with Testcontainers for Controller. Unit Tests for Service, and Mapper with Junit 5, and Mockito
https://github.com/musabbozkurt/stock-exchange-service
docker-compose flyway grafana java-21 jjwt micrometer postgresql prometheus redis spring-boot-3 spring-security springdoc-openapi testcontainers zipkin
Last synced: 27 days ago
JSON representation
PostgreSQL, Redis, Grafana, Prometheus, and Zipkin Integrations with Spring Boot 3, Java 21, and Docker. Integration Tests with Testcontainers for Controller. Unit Tests for Service, and Mapper with Junit 5, and Mockito
- Host: GitHub
- URL: https://github.com/musabbozkurt/stock-exchange-service
- Owner: musabbozkurt
- Created: 2024-06-24T18:07:40.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-06-30T16:04:45.000Z (4 months ago)
- Last Synced: 2024-07-03T01:01:12.914Z (4 months ago)
- Topics: docker-compose, flyway, grafana, java-21, jjwt, micrometer, postgresql, prometheus, redis, spring-boot-3, spring-security, springdoc-openapi, testcontainers, zipkin
- Language: Java
- Homepage:
- Size: 65.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Prerequisites
* `Java 21` should be installed --> `export JAVA_HOME=$(/usr/libexec/java_home -v 21)`
* `Docker` should be installed
* `Maven` should be installed
* `pgAdmin`/`DBeaver` can be installed (Optional)-----
### How to start the application
* First way
* Run [./scripts/run.sh](scripts%2Frun.sh) script
* Second way
* Run `mvn clean install` or `mvn clean package`
* Run `mvn spring-boot:run` or `./mvnw spring-boot:run`-----
### How to test the application
* Swagger Url: http://localhost:8080/api/v1/swagger-ui.html
* Actuator Url: http://localhost:8080/api/v1/actuator
* Metric Url: http://localhost:8080/api/v1/actuator/metrics
* Run `mvn test` or `mvn clean install` or `mvn clean package` command to run all the tests
* Test User to Get JWT Token:
* `username: admin_user`
* `password: test1234`-----
### `docker-compose` contains the followings
* Zipkin: http://localhost:9411/
* Prometheus: http://localhost:9090/graph
* RedisInsight: http://localhost:8001/
* `ADD REDIS DATABASE`: https://collabnix.com/running-redisinsight-using-docker-compose/
* Grafana: http://localhost:3000/
* `Email or username: admin`
* `Password: admin`
* Add datasource
* Select Prometheus
* Prometheus Url: http://prometheus:9090/
* Save & test
* PostgreSQL DB connection details
* `POSTGRES_USER: postgres`
* `POSTGRES_PASSWORD: postgres`
* `Port: 5432`-----