Skip to content

scottsun17/CS612RESTful-Spring-Boot-in-Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS612RESTful-Spring-Boot-in-Docker

This is a Spring Boot web service application running inside a docker container. The application has three parts:

  1. Data model - it use a JSON file as a mock database to represent Objects: different games
  2. Controller - controls the data flows, update the views and map URL parameters
  3. View - view through http://localhost:8080/game

How to run the application


  1. Install Docker on your computer and make sure docker is running. Get Docker

  2. Pull image from docker hub or visit my Dockerhub

fire the following command: docker pull suncot917/assignment1 alt text
alt text
alt text

  1. Run the following code to run the application from Docker

docker run -p 8080:8080 -t suncot917/assignment1:latest alt text

  1. Open browser and typle in http://localhost:8080/game; you can will see the database summary in a JSON format.

alt text

  1. Visit each game by id number http://localhost:8080/game + id number http://localhost:8080/game/1 http://localhost:8080/game/10

alt text alt text

About

RESTful Web Service Implementation + Docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published