This is an example, full stack, application using the following technologies:
- Spring Boot
- JPA for persistence
- Thymeleaf for UI templating
- Bootstrap for UI rendering
⚠️ This project is in active development and likely not stable. Proceed at your own risk.⚠️
./mvnw clean package
- Start a single node CockroachDB instance
docker run -d --name=crdb --hostname=crdb -p 26257:26257 -p 8080:8080 cockroachdb/cockroach:latest start-single-node --insecure
- Create the
movr
database using CockroachDB'sworkload
service
docker exec -it crdb ./cockroach workload init movr 'postgresql://root@crdb:26257?sslmode=disable'
- Run the
movr
workload generator to create data and simulate load
docker exec -it crdb ./cockroach workload run movr --duration=5m 'postgresql://root@crdb:26257?sslmode=disable'
- Start an instance of the
movr-spring-boot
application locally using Maven
./mvnw spring-boot:run -Dspring-boot.run.profiles=local
-
Open the MOVR UI: http://localhost:8082/
-
Open the CockroachDB UI: http://localhost:8080/
-
Shut down the
crdb
Docker image when ready
docker stop crdb && docker rm crdb
todo