Skip to content
项目

关于

Bedrock is a battle-tested template of micro services, components and patterns that tie together Kubernetes, Mongo, Node and React

系统与基础设施

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Bedrock Platform

More documentation about specific services and components can be found in the following sections:

  • deployment/ - Provisioning, Deployment automation, how to's, playbooks and procedures
  • services/api - Data API and data model layer that powers all applications
  • services/web - Web application and administration dashboard
  • bedrockio/ai - AI and LLM utilities (moved out of this repo)

Quick Start

Using Docker Compose you can build and run all services and dependencies as follows:

docker compose up

Open the dashboard at http://localhost:2200/ - Admin login credentials can be seen in the API output.

Package Management

This repo uses pnpm. Install it by following pnpm.io/installation. Each service's package.json pins pnpm via packageManager and Node via devEngines.runtime, so pnpm install downloads the pinned Node. Each service is installed independently from its own directory:

cd services/api && pnpm install   # likewise services/web

Supply-chain hardening

Each service's pnpm-workspace.yaml enables a few pnpm supply-chain protections:

  • minimumReleaseAge: 10080 — refuse to install any package version published less than 7 days ago (lets malware in a fresh release be caught before it lands here). A too-new pin in the lockfile is rejected on install; re-resolve to pick a compliant version.
  • blockExoticSubdeps: true — block transitive dependencies that resolve from git/tarball URLs instead of the registry.
  • allowBuilds: — an explicit allowlist of the only dependencies permitted to run install scripts (pnpm blocks all others by default). Add a package here if a build it needs is being skipped.

Git worktrees

Worktrees work out of the box — pnpm shares the global content-addressable store across all worktrees via hardlinks, so each worktree's pnpm install is fast and disk-cheap.

pnpm also has a global virtual store that would additionally share the .pnpm symlink farm across worktrees. It is not enabled here; the shared content store above already makes worktree installs fast and cheap. It can be turned on per machine via global pnpm config if wanted, since these packages use pnpm's default node_modules layout.

API Documentation

Full portal with examples: http://localhost:2200/docs/getting-started

探索相关项目

加载中…