Git Product home page Git Product logo

argyle's Introduction

#Argyle technical challenge

A fibonacci calculation library has been created in fibonacci/ Tests can be run in the fibonacci directory with go test -v .

There is also a benchmark test in the same directory that can be executed with go test -bench=.

Execution

An environment variable (PORT_NUM) is expected by the code, which defines the port that the HTTP service is listening on. The code can be executed directly with PORT_NUM=8000 go run cmd/main.go cmd/routes.go

Dockerfile

A Dockerfile has been created that will create a container, the PORT_NUM env var will still need to be set when the container is run. docker build -t fibonacci . To run the container locally use PORT_NUM=8000 docker run fibonacci

Kubernetes

fib.yaml has been created, it builds a pod, and deploys it. The PORT_NUM variable has been set in this file and therefore does not require to be set in the environment. The file expects the container that it is creating the pod from to be tagged fibonacci,

Makefile

A simple makefile has been created, it only has a single default target that assumes that the system is being built locally with minikube as the container registry.

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.