Skip to content

Ezrael2k5/lov-case

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

Test Case with gRPC

This repo is created for test case!

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

About The Project

In this repo, I developed an application with desired technologies. It is basically 4 basic math operation calculator.

Features:

  • API/Service/Repository Layer
  • 4 basic math operation support and default method calculated 4 operations at the same time
  • You should implement DRY principles to the rest of your life 😄

(back to top)

Built With

This section contains list major frameworks/libraries used to bootstrap the project.

  • Golang
  • Golang
  • Makefile
  • Mockery
  • Testify

(back to top)

Getting Started

After you clone this repository, you will find here required and useful commands.

Prerequisites

Before starting to use the app or build, we need to install go mod.

  • go.mod
    make install
  • .env file = After executing install command, you will have .env file in your folder. You can set there a few variables such as:
    SERVER_PORT=8000
    SERVER_HOST=localhost

Build

After development or to use this application directly we need to build Server and Client application

  1. Build Server
    make build-server
  2. Build Client
    make build-client
  3. Start server
    ./bin/server
  4. Send Request to Server via Client - 5 Different options we have
    ./bin/client -method add -a 20 -b 20
    ./bin/client -method sub -a 50 -b 20
    ./bin/client -method div -a 10 -b 2
    ./bin/client -method multi -a 50 -b 20
    ./bin/client -method all -a 20 -b 10

(back to top)

Features

  • Addition
  • Subtraction
  • Multiplication
  • Division
  • All calculation in an api
  • Build and manage bins with Makefile
  • Mockery and Testify

(back to top)

Contact

Mehmet Canhoroz - @mehmetcanhoroz

Makefile https://www.linkedin.com/in/mehmet-canhoroz/

(back to top)

About

a test case

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 95.7%
  • Makefile 2.2%
  • Shell 2.1%