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

  • By Cloud Native Skunkworks
  • Last update: Sep 20, 2022
  • Comments: 2

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/
  • 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": [

Retrieve a movie

curl localhost:8081/movies/year/2016



  • 1

    [ENH] Multi-stage docker-compose to package the app

    I went through your video tutorial. That was really great explaining DOCKERFILE and helm chart. But I stick to DOCKER COMPOSE here as I am already impressed and inspired through your tutorials. I have seen multi-stage dockerfile to support docker-compose where when any database like mysql is concerned, a special stage is defined. I have been very curious to see on how to create such stages and ship the app.

    I can't wait to see you next up explaining on it.

  • 2

    [ENH-IDEA] Attaching PV to deployment

    I have seen a few examples on kubernetes docs, for stateful application, like mysql, postgres, etc., we can create PV and PVC and define it on deployment manifest and helm chart as well.

    As a user, I want to deploy PV to my cluster.

    Can we refactor this project and allow PV to be attached?

    Plz suggest here if any. It'll be great if you can create a tutorial on how to create PV and PVC or suggest here. Thanks. 😄