Skip to content

(INPROGRESS)Backend App to find Employee of Day, Week , Month. This also has other features related to an organisation management like project, tasks, employees CRUD operations

Notifications You must be signed in to change notification settings

ppreetii/employee_recognition_system-microservices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install following to get started locally:

  • Docker DeskTop with Kubernetes enabled
  • Node v20
  • yarn
  • skaffold

Setup

    kubectl create secret generic task-db-user-secret --from-literal=DB_USER=<db-user-value>
    kubectl create secret generic task-db-password-secret --from-literal=DB_PASSWORD=<db-pswd-value>

Check if secrets are added.If you donot see the secrets , reapply them using above command:

kubectl get secrets

Skaffold setup

  • Install skaffold ( chocolatey must be installed to run this command ): choco install -y skaffold

Instructions

  • To start all services, run this command in root directory terminal ( or directory where skaffold.yaml file is present ) - skaffold dev
  • If you want to delete all created pods - skaffold delete
  • To run test cases, go to desired service directory, and run: yarn test
  • If services are failing to connect to raabitmq pod, restart services' pods - kubectl rollout restart deployment

Other Info

1. ADDING A NEW SERVICE:

When we are adding a service, and wanted to add its routes to work on local cluster, we follow these steps:

  • Create a Dockerfile for the service
  • Build its image by the command. Make sure you are in the service root directory.There is dot in the end.Donot miss it. Image tag = dockerHubID/srv-name: docker build -t [image tag] . ,e.g, docker build -t preeti097/auth .
  • Push your image to Docker hub: docker push [image tag] , e.g, docker push preeti097/auth
  • Add new service deployment yaml file inside infra/k8s folder with name "servicename-depl.yaml", e.g, auth-depl.yaml.
  • Add the routes configuration inside skaffold.yaml. Make sure the context value = corresponding folder name of the service , e.g, auth,project,task,employee,etc. And image value = image tag name given above

About

(INPROGRESS)Backend App to find Employee of Day, Week , Month. This also has other features related to an organisation management like project, tasks, employees CRUD operations

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published