This is a Spring Boot web service application running inside a docker container. The application has three parts:
- Data model - it use a JSON file as a mock database to represent Objects: different games
- Controller - controls the data flows, update the views and map URL parameters
- View - view through
http://localhost:8080/game
-
Install Docker on your computer and make sure docker is running. Get Docker
-
Pull image from docker hub or visit my Dockerhub
fire the following command: docker pull suncot917/assignment1
- Run the following code to run the application from Docker
docker run -p 8080:8080 -t suncot917/assignment1:latest
- Open browser and typle in
http://localhost:8080/game
; you can will see the database summary in a JSON format.
- Visit each game by id number
http://localhost:8080/game + id number
http://localhost:8080/game/1
http://localhost:8080/game/10