This is the companion repository with some sample code as used in the video. It has working code for uploading and retrieval of movies. Why not write the rest?
- Connect to a local kubernetes cluster
- Run the postgres installer
./scripts/install-postgres.sh
- Either run the API locally or push your own docker image and modify the helm chart
curl -X POST http://localhost:8081/movie -H 'Content-Type: application/json' -d '{
"title": "Avengers: Age of Ultron",
"year": 2016,
"cast": [
"Robert Downey, Jr.",
"Chris Evans",
"Chris Hemsworth",
"Mark Ruffalo"
],
"genres": [
"Action"
]
}'
curl localhost:8081/movies/year/2016