DevOps Basics

DevOps Basics

DevOps is a culture and set of practices that bring development and operations together.

Continuous Integration

Developers frequently merge code into a shared repository. Automated tests run on every change.

// Example: a simple Node.js test with Jest
test('adds numbers', () => {
  function add(a, b) {
    return a + b;
  }
  expect(add(2, 3)).toBe(5);
});

## Continuous Delivery

Every change that passes tests is ready to be deployed.

## Infrastructure as Code

Tools like Terraform or CloudFormation let you define infrastructure in code so it can be versioned and automated.