GithubHelp home page GithubHelp logo

foot-team-management-api's Introduction

Football Management team system API

Context

This project had been made as a technical test for a job interview at Shadow

Install project

Clone repository

git clone [email protected]:Thomasevano/foot-team-management-api.git

Go inside the folder

cd foot-team-management-api

Make sure to use pnpm Install dependencies

pnpm install

To run the project locally in developpment nothing simpler

pnpm run dev

Deployment

To deploy the poject on your Kubernetes cluster, there is a Dockerfile that allow you to build a Docker Image

docker build -t foot-team-management-api .

Create a kubernetes cluster

kubectl apply -f foot-team-management-api.yml

To deploy it on a cluster I will have my docker Image uploaded on a docker registry, on Github for example. That image will be build by the CI each time a merge on main branch is done, meaning we are sure of what we have done This image update will automatically update my kubernetes cluster thanks to a spec in kubernetes.yml file:

strategy:
    rollingUpdate:
      maxSurge: 1 # as an absolute number of replicas
      maxUnavailable: 33% # as % of replicas
    type: RollingUpdate

This rollingUpdate allow us to update our kubernetes cluster by just changing the image version with this command:

kubectl set image deployment/foot-team-management-api-demo foot-team-management-api-container=foot-team-management-api-image:1.2

if the image version is different than the one used in the kubernetes cluster it will update the cluster with this new version

So each time we want to update our app with new code we just need to do this command by specifying the version we want We can imagine using a script that is linked to like a slack action and we can deploy new version in prodcution lightning fast

foot-team-management-api's People

Contributors

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