A simple ticket service that facilitates the discovery, temporary hold, and final reservation of seats within a high-demand performance venue.
----------[[ STAGE ]]----------
---------------------------------
sssssssssssssssssssssssssssssssss
sssssssssssssssssssssssssssssssss
sssssssssssssssssssssssssssssssss
sssssssssssssssssssssssssssssssss
sssssssssssssssssssssssssssssssss
sssssssssssssssssssssssssssssssss
sssssssssssssssssssssssssssssssss
sssssssssssssssssssssssssssssssss
sssssssssssssssssssssssssssssssss
- Find the number of seats available within the venue ⋅⋅⋅Note: available seats are seats that are neither held nor reserved.
- Find and hold the best available seats on behalf of a customer ⋅⋅⋅Note: each ticket hold should expire within a set number of seconds.
- Reserve and commit a specific group of held seats for a customer
./gradlew test
./gradlew build
java -jar build/libs/ticket-service-*.jar
./gradlew buildDocker
docker run -e "SPRING_PROFILES_ACTIVE=prod" -p 8080:8080 -t ticket-service
docker run -e "SPRING_PROFILES_ACTIVE=dev" -p 8080:8080 -t ticket-service
./gradlew javadoc
cd build/docs/javadoc/
serve
(from npm install serve
replace with local server example could best )
python -m SimpleHTTPServer 8000
Or I guess just open the file.. you do you...
localhost:{port}/swagger-ui.html
(need to turn it off during prod, but eh)