An example project to demonstrate:
- how to create a Spring Boot REST API (article | video)
- how to run Spring Boot in Docker and publish to Docker Hub (article | video)
- how to deploy the Spring Boot application to AWS with CloudFormation (article | video)
- JDK 17+
- Docker
./gradlew test
./gradlew assemble
./gradlew build
./gradlew assemble docker dockerRun
./gradlew dockerStop
./gradlew awsCfnMigrateStack awsCfnWaitStackComplete -PsubnetId=<your-subnet-id> -Pregion=<your-region>
./gradlew awsCfnDeleteStack awsCfnWaitStackComplete
- get all rides - GET /ride to get a list of all the rides
- get specific ride - GET /ride/${id} to get a specific ride
- create ride - POST JSON to /ride to create a new ride (see article for full details)
Contact me if you need help at tom@tomgregory.com.