the statusphere demo reworked into a vite/react app in a monorepo

more tidy

dholms b186646a 5d629914

+3 -152
-37
.github/renovate.json
··· 1 - { 2 - "$schema": "https://docs.renovatebot.com/renovate-schema.json", 3 - "extends": ["config:recommended", "customManagers:biomeVersions"], 4 - "labels": ["chore: dependencies"], 5 - "dependencyDashboard": true, 6 - "lockFileMaintenance": { 7 - "enabled": true 8 - }, 9 - "packageRules": [ 10 - { 11 - "matchUpdateTypes": ["minor", "patch", "pin", "digest"], 12 - "groupName": "all non-major dependencies", 13 - "groupSlug": "all-minor-patch", 14 - "automerge": true 15 - }, 16 - { 17 - "matchPackageNames": ["@biomejs/biome"], 18 - "groupName": "biome", 19 - "groupSlug": "biome", 20 - "automerge": true 21 - }, 22 - { 23 - "matchPackageNames": ["@commitlint/cli", "@commitlint/config-conventional"], 24 - "groupName": "commitlint", 25 - "groupSlug": "commitlint", 26 - "automerge": true 27 - }, 28 - { 29 - "packagePatterns": ["@types", "typescript"], 30 - "groupName": "typescript" 31 - }, 32 - { 33 - "packagePatterns": ["@vitest", "vitest"], 34 - "groupName": "vitest" 35 - } 36 - ] 37 - }
-26
.github/workflows/build.yml
··· 1 - name: Build 2 - 3 - on: 4 - push: 5 - branches: ["master"] 6 - pull_request: 7 - branches: ["master"] 8 - 9 - jobs: 10 - build: 11 - runs-on: ubuntu-latest 12 - 13 - steps: 14 - - uses: actions/checkout@v4 15 - 16 - - name: Use the latest stable Node.js 17 - uses: actions/setup-node@v4 18 - with: 19 - node-version-file: '.nvmrc' 20 - cache: "npm" 21 - 22 - - name: Install Dependencies 23 - run: npm ci 24 - 25 - - name: Run Build 26 - run: npm run build
-22
.github/workflows/code-quality.yml
··· 1 - name: Code Quality 2 - 3 - on: 4 - push: 5 - branches: ["master"] 6 - pull_request: 7 - branches: ["master"] 8 - 9 - jobs: 10 - quality: 11 - runs-on: ubuntu-latest 12 - steps: 13 - - name: Checkout 14 - uses: actions/checkout@v4 15 - 16 - - name: Setup Biome 17 - uses: biomejs/setup-biome@v2 18 - with: 19 - version: latest 20 - 21 - - name: Run Biome 22 - run: biome ci .
-38
.github/workflows/docker-image.yml
··· 1 - name: Docker Image CI 2 - 3 - on: 4 - push: 5 - branches: ["master"] 6 - pull_request: 7 - branches: ["master"] 8 - 9 - jobs: 10 - build: 11 - runs-on: ubuntu-latest 12 - 13 - steps: 14 - - uses: actions/checkout@v4 15 - 16 - # Login step only executed for pushes to main 17 - - name: Login to GitHub Container Registry 18 - if: github.ref == 'refs/heads/master' 19 - uses: docker/login-action@v3 20 - with: 21 - registry: ghcr.io 22 - username: ${{ github.actor }} 23 - password: ${{ secrets.GH_Token }} 24 - 25 - # Build and tag the production Docker image 26 - - name: Build the Docker image 27 - run: | 28 - docker build . --file Dockerfile --tag ghcr.io/${{ github.repository }}:${{ github.sha }} 29 - if [ "${{ github.ref }}" == "refs/heads/master" ]; then 30 - docker tag ghcr.io/${{ github.repository }}:${{ github.sha }} ghcr.io/${{ github.repository }}:latest 31 - fi 32 - 33 - # Push the production Docker image 34 - - name: Push the Docker image 35 - if: github.ref == 'refs/heads/master' 36 - run: | 37 - docker push ghcr.io/${{ github.repository }}:${{ github.sha }} 38 - docker push ghcr.io/${{ github.repository }}:latest
-26
.github/workflows/test.yml
··· 1 - name: Test 2 - 3 - on: 4 - push: 5 - branches: ["master"] 6 - pull_request: 7 - branches: ["master"] 8 - 9 - jobs: 10 - build: 11 - runs-on: ubuntu-latest 12 - 13 - steps: 14 - - uses: actions/checkout@v4 15 - 16 - - name: Use the latest stable Node.js 17 - uses: actions/setup-node@v4 18 - with: 19 - node-version-file: '.nvmrc' 20 - cache: "npm" 21 - 22 - - name: Install Dependencies 23 - run: npm ci 24 - 25 - - name: Run Test 26 - run: npm run test
src/common/middleware/errorHandler.ts src/middleware/errorHandler.ts
src/common/middleware/requestLogger.ts src/middleware/requestLogger.ts
src/common/utils/envConfig.ts src/env.ts
+3 -3
src/server.ts
··· 5 5 import helmet from "helmet"; 6 6 import { pino } from "pino"; 7 7 8 - import errorHandler from "#/common/middleware/errorHandler"; 9 - import requestLogger from "#/common/middleware/requestLogger"; 10 - import { env } from "#/common/utils/envConfig"; 11 8 import { createDb, migrateToLatest } from "#/db"; 9 + import { env } from "#/env"; 12 10 import { Ingester } from "#/firehose/ingester"; 11 + import errorHandler from "#/middleware/errorHandler"; 12 + import requestLogger from "#/middleware/requestLogger"; 13 13 import { createRouter } from "#/routes"; 14 14 import type { AppContext } from "./config"; 15 15