Back to KB
Difficulty
Intermediate
Read Time
3 min

CI/CD Pipline

By Codcompass TeamΒ·Β·3 min read

Here’s a real-world CI/CD pipeline setup for a React frontend + Node.js backend + deployment using GitHub Actions**. This is very close to what startups actually use.


πŸš€ Full CI/CD Pipeline (React + Node + GitHub Actions)

🧱 Architecture

Frontend (React)  β†’  Backend (Node/Express)  β†’  Deployment (Vercel / Render / AWS)
        ↑                    ↑
     CI tests            CI tests
        ↓                    ↓
   GitHub Actions runs everything automatically

Enter fullscreen mode Exit fullscreen mode


πŸ“ Example Project Structure

```plaintext id="7p0k1m"
my-app/
β”œβ”€β”€ client/ # React app
β”œβ”€β”€ server/ # Node.js API
β”œβ”€β”€ .github/
β”‚ └── workflows/
β”‚ └── ci-cd.yml
β”œβ”€β”€ package.json




---

# βš™οΈ CI Pipeline (Testing both React + Node)

This workflow runs on every push and pull request.



```yaml id="ci1234"
name: Full CI Pipeline

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  test-frontend:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4

      - name: Setup Node
        uses: actions/setup-node@v4
        with:
          node-version: 20

      - name: Install frontend dependencies
        working-directory: client
   

πŸŽ‰ Mid-Year Sale β€” Unlock Full Article

Base plan from just $4.99/mo or $49/yr

Sign in to read the full article and unlock all 635+ tutorials.

Sign In / Register β€” Start Free Trial

7-day free trial Β· Cancel anytime Β· 30-day money-back