Git Product home page Git Product logo

movies's Introduction

Movies App

This example shows how to leverage Okteto to develop an application based on microservices directly on Kubernetes. The Movies App is deployed using a Helm Charts. It creates the following components:

  • A React based frontend service, using webpack as bundler and hot-reload server for development
  • A Node.js based catalog service to serve the available movies from a MongoDB database
  • A Java based rent service to receive rent requests and send them to Kafka
  • A Golang based worker to process rent request from Kafka and update the PostgreSQL database
  • A Golang based api to retrieve the current movies rentals from the PostgresSQL database
  • A MongoDB database
  • A Kafka queue
  • A PostgresQL database

Architecture diagram

Development container demo script

  • Deploy the repo from UI
  • Rent two movies
  • okteto up worker + make build + make start
  • Uncomment line 61 in rentals/cmd/worker/main.go
  • make build + make start
  • Show how the change is applied

movies's People

Contributors

bwestover avatar dependabot[bot] avatar pchico83 avatar rberrelleza avatar rinkiyakedad avatar rlamana avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

movies's Issues

Frontend development is broken

Currently the file sync is being done to the container folder /usr/src/app, but the image built starts in /src and has the installed npm dependencies.

I tried to solve the issue by reassigning the WORKDIR in the Dockerfile, but apparently the image pushed to docker hub is not built from that Dockerfile

Steps to reproduce:

  • Follow the common process to develop with okteto
    • Deploy movies in cloud
    • Clone movies
    • cd into movies/frontend
    • delete command: yarn start from the okteto.yml manifest
    • okteto up

You should see you are standing in /src and your file syncing is not done there.

Proposed Solution:

  • Update Dockerfile so that the final image has yarn. Could be using a one stage image
    • Update dockerhub image after that
  • Update manifest so that it uses the Dockerfile to build?

The secret "mongodb" does not contain the key "mongodb-passwords"

Irrespective where I run the deploy, it fails due to missing secret key.

Release "mongodb" does not exist. Installing it now.!
Error: execution error at (mongodb/templates/secrets.yaml:33:24):!
PASSWORDS ERROR: The secret "mongodb" does not contain the key "mongodb-passwords"!error executing command 'Deploy MongoDB':
exit status 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.