Skip to content

The companion repo for "learn to build microservices in 1 hour"

Notifications You must be signed in to change notification settings

cloud-native-skunkworks/movie-catalogue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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?

Setup

  • 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

Post a movie

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"
    ]
}'

Retrieve a movie

curl localhost:8081/movies/year/2016

About

The companion repo for "learn to build microservices in 1 hour"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published