Skip to content

srahul3/backend-express-voting-mongo-aks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Use this template

ReactJS AKS ACS Kubernetes Ingress Controller

Use this stack to spin up a NodeJS-Express backend sample voting application on Azure Kubernetes Service (AKS) cluster.

The stack will create and configure:

  1) A containter image of this application
  2) Two replica-set of the application
  2) Loadbalancer service to access the replica-set   
  3) Configure the paths in ingress controller to access the application using DNS name
  4) Config map service.

Dependencies

Use this template The stack will help you to setup the AKS custer for this application.

Create a public MongoDB which is required for this application for persistence.

Why should you use this stack?

The stack will configures the demo voting backend application and it code along with CI/CD pipeline to deploy it on AKS cluster. It also configures the Loadbalancer service and Ingress application to make this application publically accessible.

What are the inputs to pass while setting up the stack?

OIDC Auth inputs

- AZURE_CLIENT_ID
- AZURE_SUBSCRIPTION_ID
- AZURE_TENANT_ID

ACR setup inputs

- ACR_NAME
- ACR_RESOURCE_GROUP

AKS configuration inputs

AKS_KUBECONFIG
AZURE_AKS_NAME
AZURE_AKS_RESOURCE_GROUP

Other inputs

- MONGODB_CONNECTION_STRING
- DNS_NAME
- AZURE_LOCATION

Github apps installed with this stack

None

Exposed APIs

GET /voting - List all the voting candidates. GET /vote/:candidateID - Request to increment the candidate's vote by 1. GET / for AKS health monitoring

Learn more

Azure Kubernetes Service (AKS)

Learn more about AKS from the official tutorial. Visit https://azure.microsoft.com/en-in/services/kubernetes-service/#overview to view the full documentation.

Node js and Express JS Framework

Learn more about Express JS from the official tutorial. Visit https://expressjs.com/en/starter/hello-world.html to view the full documentation.

Other Useful links

Contributor guide

Please see our guide lines for contributing.md.

Contributors

License

Unless otherwise noted, this GitHub Stack is distributed under the Apache Version 2.0 license found in the LICENSE file.