Git Product home page Git Product logo

srin-take-home-assignment's Introduction


SRIN Take Home Assignment

Implementation of Grpc Server using .NET framework


Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contact

About The Project

This project implements a simple gRPC server that returns "Hello, World!" using .NET. The application is containerized using Docker and deployed locally using Docker compose and Kubernetes with Minikube. The application is also deployed on a remote Kubernetes cluster using Amazon EKS cluster. The full documentation of the solution implementation can be accessed here

(back to top)

Built With

  • .NET
  • C#
  • Docker
  • Kubernetes
  • AWS

(back to top)

Getting Started

Prerequisites

  • .NET 8.0 SDK
  • Docker
  • Kubectl
  • Minikube
  • AWS CLI

Clone the repo

  1. Run the following command
    git clone https://github.com/ardimr/SRIN-take-home-test

Build the docker image (Optional)

  1. Run the following command
    docker build -t ardimr/grpc-hello-world:$(TAG) .
    **NB: specify the tag accordingly

Local Development

  1. Run the program
    dotnet run

Local Deployment

Run With Docker

Make sure you have installed the docker.

  1. Run docker command

    • Start Application

      docker container run -d -p 8080:8080 --name grpc-hello-world ardimr/grpc-hello-world:dev
    • Shutdown Application

      docker container stop grpc-hello-world
Run With Docker Compose

Make sure you have installed the docker-compose. Please follow this link for the guidance

  1. Run docker-compose

    • Start Application

      docker-compose up -d
    • Shutdown Application

      docker-compose down

(back to top)

Usage

Call gRPC request using grpcurl
  grpcurl -plaintext -import-path Protos/ -proto greet.proto  127.0.0.1:8888 greet.Greeter/SayHelloWorld

(back to top)

Roadmap

  • Implemented a simple gRPC Server that return Hello World
  • Add Dockerfile
  • Push image to docker repository
  • Run container using docker-compose.yml
  • Deploy app in Kubernetes
  • Deploy app in EKS

(back to top)

Contact

Rizky Ardi Maulana - [email protected]

(back to top)

srin-take-home-assignment's People

Contributors

ardimr 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.