Building EduBridge Taught Me DevOps
How building and deploying EduBridge introduced me to Docker, CI/CD, security automation, containerization, and production deployment.
My Journey into DevOps: From Building EduBridge to Automated Deployment
When I started building EduBridge, my focus was mainly on the application itself — the frontend, backend, database, authentication, and other features.
As the project grew, another question became important:
> How do I reliably build, validate, package, and deploy everything I'm developing?
That question introduced me to DevOps through the actual problems I was facing in EduBridge. Rather than learning it through isolated tutorials, I applied it directly to a real, working application.
---
1. Why Docker Became Necessary
EduBridge consists of multiple services: a Next.js frontend, an Express API, PostgreSQL, and Redis. Running these manually meant maintaining different configurations and dependencies across environments.
Docker gave me a way to define the environment consistently. I created a Docker Compose configuration for the core services:
services:
postgres:
image: postgres:17-alpine
redis:
image: redis:7-alpine
api:
build:
context: .
dockerfile: apps/api/Dockerfile
web:
build:
context: .
dockerfile: apps/web/Dockerfile
The important part wasn't just running containers — it was making the services work together reliably. PostgreSQL and Redis have health checks, and the API depends on them being healthy before it starts:
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
Why? Because starting the API before its dependencies are ready causes connection failures. I also added persistent volumes for PostgreSQL and Redis so recreating a container wouldn't wipe out its data.
This was one of my first practical lessons in DevOps: infrastructure configuration is part of building a reliable application.
---
2. Why I Added CI
As the application grew, manually checking every change stopped being reliable. I wanted the repository to automatically answer a few basic questions whenever code changed:
- Does the project install correctly?
- Is the Prisma configuration valid?
- Does TypeScript pass?
- Does linting pass?
- Can the applications build successfully?
That led me to GitHub Actions. My CI workflow runs on pushes to main and on pull requests targeting main:
- run: pnpm --filter api run prisma:validate
- run: pnpm --filter api run prisma:generate
- run: |
pnpm --filter api lint
pnpm --filter web lint
- run: |
pnpm --filter api typecheck
pnpm --filter web typecheck
- run: |
pnpm --filter api build
pnpm --filter web build
Why? The goal is simple: catch problems before they reach the next stage of delivery. A change can work perfectly on a local machine and still fail TypeScript compilation or a production build in a clean environment. CI gives me an automated checkpoint instead of relying entirely on manual verification.
---
3. Why Security Needed Its Own Workflow
Build success doesn't mean a project is safe. I wanted security checks to be part of the development process rather than something I had to remember to do manually — so I created a separate security workflow.
It runs a production dependency audit:
- run: pnpm audit --prod --audit-level=high
And scans for accidentally exposed secrets using TruffleHog:
- uses: trufflesecurity/trufflehog@main
with:
extra_args: --only-verified
Why separate it from CI? Because application validation and security validation answer different questions. CI asks: *does the application work?* Security checks ask: *are there known high-severity dependency issues or exposed secrets?* This was my first real, practical introduction to DevSecOps.
---
4. Why Automate Docker Image Builds
Once the application was built and validated, I needed a repeatable way to turn it into deployable artifacts. My Docker workflow builds both the API and web images and publishes them to GitHub Container Registry, tagged two ways:
latest
<commit-sha>
The commit SHA tag matters because it ties a specific image back to the exact source revision that produced it — useful for debugging and rollbacks.
The workflow authenticates with the registry using the GitHub-provided token:
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
Then builds and pushes the API image (the web image follows the same pattern):
- uses: docker/build-push-action@v6
with:
context: .
file: ./apps/api/Dockerfile
push: true
tags: |
ghcr.io/${{ env.REPO_LOWERCASE }}/api:latest
ghcr.io/${{ env.REPO_LOWERCASE }}/api:${{ github.sha }}
Why? Without automation, I'd be building and pushing images by hand every time. With this workflow, the process becomes repeatable — code goes in, an image comes out — which is much closer to how I want software delivery to actually work.
---
5. How the Pieces Fit Together
At this point, the tools stopped feeling like separate technologies and started feeling like one pipeline:
Code
↓
GitHub
↓
CI
├── Prisma validation
├── Lint
├── Type check
└── Build
↓
Security
├── Dependency audit
└── Secret scanning
↓
Docker
↓
Container Images
↓
GitHub Container Registry
↓
Deployment
For local development, Docker Compose brings the core services together:
Next.js
│
Express API
│
┌─┴─────────┐
PostgreSQL Redis
This is when I started seeing DevOps as a delivery process, not just a collection of tools.
---
6. Moving EduBridge Toward Production
For deployment, I separated the frontend and backend. The Next.js frontend is deployed with Vercel; the Express API is deployed with Render. This split lets each application have its own deployment environment while still communicating through configured environment variables.
Production configuration includes things like:
- Database connection
- Redis connection
- CORS origin
- JWT secrets
- Email configuration
- OAuth configuration
- Object storage configuration
Sensitive values live in environment configuration, not in the repository.
Why? Application code and environment-specific secrets shouldn't be treated as the same thing. The same codebase should be able to move between environments without being rewritten.
---
7. What I Actually Learned
The biggest shift was in how I think about building software.
Before this, my main question was: *how do I build the feature?*
Working on EduBridge pushed me toward a broader question: *how do I build it, validate it, secure it, package it, and deliver it reliably?*
- Docker taught me about reproducible environments.
- GitHub Actions taught me how to automate validation.
- Security scanning showed me that security belongs inside the delivery process, not bolted on afterward.
- Image publishing taught me how an application becomes a deployable artifact.
- Vercel and Render gave me hands-on experience taking an application toward production.
---
8. What's Next
This is still early in my DevOps journey. After working through Docker, CI/CD, security automation, container registries, and deployment, I want to go deeper into:
- Kubernetes
- Cloud-native architecture
- Infrastructure automation
- Monitoring and observability
- More advanced CI/CD
- Production reliability
I don't see these as separate from software development — I see them as the next layer of understanding how software is actually delivered and operated.
---
Conclusion
EduBridge started as a full-stack development project, but building it pushed me into a much broader part of software engineering. I started with the application itself and gradually had to think about its environment, validation, security, containerization, image management, and deployment.
That experience became my practical introduction to DevOps. I'm still learning, but I now have something more valuable than knowledge of individual tools: hands-on experience applying DevOps practices to a real application.