Skip to content

High-Reliability Code Execution Engine - Monorepo with React Frontend, Node.js Backend, E2E Tests & High QA Coverage

Notifications You must be signed in to change notification settings

PkLavc/codepulse-monorepo

Repository files navigation

CodePulse: High-Performance Code Execution Engine

A Professional Monorepo with React Frontend, Node.js Backend, E2E Tests & High QA Coverage

CI/CD Pipeline CodeCov Coverage Frontend: React + TypeScript Backend: Node.js + Fastify E2E Tests: Playwright License: MIT

Project Overview

CodePulse is a professional-grade monorepo showcasing software engineering excellence with:

  • Frontend: React with TypeScript & Vite (primary) + HTML/JS fallback
  • Backend: Node.js with Fastify & TypeScript
  • Testing: Vitest (unit), Playwright (e2e), test infrastructure in place
  • CI/CD: GitHub Actions with automated testing, linting, and deployments
  • Deployment: GitHub Pages (Frontend) + Vercel (Backend)

Engineering Excellence & Professional Showcase

Feature Implementation Industry Impact
High QA Standards 85%+ Coverage & E2E Testing Reduces software defects and maintenance costs
Automation First Full CI/CD (GitHub Actions) Accelerates time-to-market for digital solutions
Scalable Monorepo Yarn Workspaces + TypeScript Demonstrates management of complex enterprise systems
Cloud Native Vercel + Serverless Backend Showcases cost-efficient and resilient deployment

Deployment & Integration

Deployment Configuration

Backend (Vercel)

  • Automatic deployment via GitHub Actions
  • Serverless Functions with Node.js
  • Environment variables managed in Vercel dashboard
  • API URL: https://codepulse-monorepo-backend.vercel.app

Frontend (GitHub Pages)

  • Automatic build via GitHub Actions
  • Hosted at https://pklavc.github.io/codepulse-monorepo
  • Vite configuration optimized for production

Tech Stack

Layer Technology Version
Frontend React 18.x
TypeScript 5.x
Vite Latest
Backend Node.js 18.x
Fastify Latest
TypeScript 5.x
Testing Vitest Latest
Playwright Latest
CI/CD GitHub Actions -
Code Quality ESLint Latest
Codecov -

Project Structure

System Interaction Flow

graph LR
    A[Frontend: React/TS] -->|API Calls| B[Backend: Fastify/Node]
    B -->|Logic| C[Execution Engine]
    D[Playwright E2E] -->|Tests| A
    D -->|Tests| B
    E[CI/CD Pipeline] -->|Validates| D
Loading
codepulse-monorepo/
├── frontend/              # React + Vite application
│   ├── src/
│   │   ├── App.tsx
│   │   ├── App.test.tsx
│   │   └── ...
│   ├── package.json
│   └── vite.config.ts
├── backend/               # Node.js + Fastify API
│   ├── src/
│   │   ├── server.ts
│   │   ├── server.test.ts
│   │   └── ...
│   ├── package.json
│   └── tsconfig.json
├── e2e/                   # Playwright end-to-end tests
│   ├── tests/
│   ├── package.json
│   └── playwright.config.ts
├── .github/workflows/     # CI/CD pipelines
│   └── ci.yml
├── package.json           # Root workspace configuration
└── README.md             # This file

Quick Start

Prerequisites

  • Node.js 18.x or higher
  • Yarn 3.x or higher

Installation

# Install dependencies across all workspaces
yarn install

Development

# Start all services in development mode
yarn dev

# Frontend only
cd frontend && yarn dev

# Backend only
cd backend && yarn dev

Testing

# Run all tests
yarn test

# With coverage report
yarn test:coverage

# E2E tests
cd e2e && yarn test

Build

# Build all packages
yarn build

# Frontend build
cd frontend && yarn build

# Backend build
cd backend && yarn build

Linting

# Lint all packages
yarn lint

# Format code
yarn format

Testing & QA

Frontend Testing

  • Unit Tests: Vitest with React Testing Library
  • Coverage: In development (basic test structure implemented)
  • Configuration: frontend/vitest.config.ts

Backend Testing

  • Unit Tests: Vitest with mocked services
  • Coverage: In development (basic test structure implemented)
  • Configuration: backend/vitest.config.ts

E2E Testing

  • Framework: Playwright
  • Browsers: Chromium, Firefox, WebKit
  • Configuration: e2e/playwright.config.ts

QA Metrics Snapshot

  • Unit Testing: Vitest (Test structure in place)
  • E2E Testing: Playwright (Cross-browser verification)
  • Static Analysis: ESLint + TypeScript (Strict mode)
  • Continuous Tracking: Codecov integration for coverage regression

CI/CD Pipeline

Automated Workflow (.github/workflows/ci.yml)

  1. Lint & Test Job

    • Runs on: Push to main, Pull requests
    • Node.js versions: 18.x
    • Steps:
      • Checkout code
      • Install Node.js
      • Install dependencies with Yarn
      • Run ESLint
      • Run unit tests with coverage
      • Upload coverage to Codecov
  2. Frontend Deploy Job

    • Runs after lint-and-test succeeds
    • Builds React app with Vite
    • Deploys to GitHub Pages
    • Status: ✅ Green checkmark
  3. Status Badges

    • CI/CD Pipeline: Automatic from GitHub Actions
    • Code Coverage: From Codecov integration

Code Coverage

  • Frontend: Test infrastructure in place (coverage metrics to be implemented)
  • Backend: Test infrastructure in place (coverage metrics to be implemented)
  • Overall: Test framework ready for coverage implementation
  • Codecov integration for continuous tracking

API Documentation

Backend API endpoints:

GET  /api/health - Health check
POST /api/execute - Execute code (POST variant)

Environment Variables

Backend (.env)

NODE_ENV=production
PORT=3001
CORE_ALLOWED_ORIGINS=*
EXECUTION_TIMEOUT=5000

Frontend (.env.production)

VITE_API_URL=https://codepulse-monorepo-backend.vercel.app
VITE_APP_NAME=CodePulse

Documentation

Contributing

Contributions are welcome! Please ensure:

  1. All tests pass: yarn test
  2. Code is linted: yarn lint
  3. Coverage is maintained: yarn test:coverage
  4. Commit messages follow conventional commits

License

MIT License - See LICENSE file for details

Author

Patrick Lavc - Computer Engineer To view other projects and portfolio details, visit: https://pklavc.github.io/projects.html


CodePulse - A high-performance monorepo architecture for modern full-stack application development.

About

High-Reliability Code Execution Engine - Monorepo with React Frontend, Node.js Backend, E2E Tests & High QA Coverage

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •