We are going to make a Springboot API service to store movie ratings into a database.
For this extra credit assignment, you need to convert the movie database app into a Spring Boot application. You will also need to create a Docker image with your application as well.
If you follow along the video tutorial, you should have built your very first Spring app and have it run in a container!
For further reference, please consider the following sections:
The following guides illustrate how to use some features concretely:
- Building a RESTful Web Service
- Serving Web Content with Spring MVC
- Building REST services with Spring
- Have Docker installed and running.
- Build the image with the command
docker build . -t movie_db
- Create a container with the command
docker run -i -t -p 8080:8080 --rm movie_db:latest
- To run my image, do the following:
- First pull my image down by running
docker pull robot297/spring-movie-app
- Then create a container by running
docker run -i -t -p 8080:8080 -rm robot297/spring-movie-app
- First pull my image down by running
- When you're done running the application, just hit the keys
ctrl + c
in terminal to kill the process
- You can access the swagger spec here
test