Giter Club home page Giter Club logo

backend-stakater's Introduction

Stakater Hiring Task - Backend Repository

Requirements

Setup

  1. Start docker desktop (in case you are using Windows)
  2. Run minikube start to start minikube locally
  3. Run kubectl get ingresses,services,pods -A to get the list of services running locally on minikube

Run Commands

  1. Build docker image: docker build -f Dockerfile -t hello-python-backend:latest .
  2. Apply Kubernetes Deployment file: kubectl apply -f ./kubernetes/backend-deployment.yaml
  3. Expose the port 8080 of backend API to be reachable by the frontend kubectl expose deployment hello-python-backend --type=NodePort --port=8080
  4. Run the command below to open the hello-python-backend on minikube minikube service hello-python-backend-service
  5. Open the minikube URL alonside /api/hello on your browser Example: http://127.0.0.1:55633/api/hello

Printscreen showing the backend API working

image

Variable NAME location

Change the value of value NAME on kubernetes/backend-deployment.yaml to change what the API will return image

Helm Chart

The helm chart can be created using this tutorial: https://docs.bitnami.com/tutorials/create-your-first-helm-chart/

backend-stakater's People

Contributors

cesarnog avatar

Stargazers

 avatar

Watchers

 avatar

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.