Coder Social home page Coder Social logo

devops-sample-app's Introduction

devops-sample-app

Overview

This is a sample application using Flask for the backend and Next.js for the frontend.

Setup Instructions

Backend

  1. Navigate to the server directory:

    cd server
  2. Create a virtual environment and activate it:

    python3 -m venv venv
    source venv/bin/activate
  3. Install the required packages:

    pip install -r requirements.txt
  4. Run the Flask application:

    python app.py
    or
    flask run

Frontend

  1. Navigate to the client directory:

    cd client
  2. Install the required packages:

    npm install
  3. Run the Next.js application:

    npm run dev

Task for Candidates

  1. CI/CD Pipeline Setup

    • Fork this repository.
    • Create a CI/CD pipeline using Azure DevOps.
    • Include automated testing in the pipeline.
    • Deploy the application to Azure App Services.
  2. Containerization

    • Write Dockerfiles for both the Flask backend and the Next.js frontend.
    • Ensure both Docker containers run locally.
  3. Kubernetes Deployment on Azure

    • Write Kubernetes manifests to deploy the Docker containers to a Kubernetes cluster.
    • Ensure the application is accessible through a Kubernetes service.
  4. Load Balancer

    • Configure Nginx as a load balancer to distribute traffic.
  5. Bonus

    • Implement basic logging for the application using ELK stack or Azure Monitor.

Submission

  1. Code Repository:

    • Host the project on a private GitHub repository forked from this sample application.
    • Provide a README.md file with instructions on how to set up and run the project locally.
    • Share access to the repository with [email protected].
  2. Video Demonstration:

    • Record a video demonstrating the working of the CI/CD pipeline, Docker container, Kubernetes deployment on Azure, and load balancer setup.
    • The video should show:
      • The CI/CD pipeline in action, deploying the application.
      • Running the Docker containers locally.
      • Accessing the application through the Kubernetes service.
      • Nginx implementation.
    • Upload the video to Google Drive and provide the link in the README.md file.

Evaluation Criteria

  • Technical accuracy and functionality of the CI/CD pipeline, Docker containers, Kubernetes deployment, and load balancer setup.
  • Attention to detail and adherence to best practices in DevOps.

devops-sample-app's People

Contributors

errwnd avatar jay-patel-257 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.