项目 / saleor/saleor-dashboard

saleor/saleor-dashboard

行业推荐
语言 TypeScript标签 graphqlecommercesingle-page-appsaleorecommerce-platformreacttypescriptdashboard数据更新 2026-11-20 06:49:16 · 仓库 2026-11-19

一段话介绍

Saleor 电商平台的管理后台,是一个由 GraphQL 驱动的单页应用,用来管理店铺后台业务。

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
A GraphQL-powered, single-page dashboard application for Saleor.
1,055累计星
1,245Fork
—峰值日增
0上榜次数
总榜
暂未入榜
日榜
暂未入榜
周榜
暂未入榜
月榜
暂未入榜

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景

按行业选型 →

电商交易与订单履约

适配系统:交易中台、订单履约系统 · 得分 1.4

内置商品、购物车、订单与支付对象模型,可作为电商交易中台直接改造复用。

BI 可视化与自助分析

适配系统:BI/报表平台、自助分析平台 · 得分 1.2

提供图表渲染与自助取数能力,可作为业务看板与经营管理分析的展示层。

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

我的用法
先准备已运行的 [Saleor](https://github.com/saleor/saleor) 实例和 Node.js 环境,再按[项目文档](https://docs.saleor.io/)与[仓库 README](https://github.com/saleor/saleor-dashboard)安装依赖、配置环境变量并启动开发服务。也可先到 [Saleor 官网](https://saleor.io/)了解产品。
特点或设计要点
开发环境需要 Node.js v24、正在运行的 Saleor 实例,以及 PNPM。按仓库说明安装依赖并配置环境变量后,可启动开发服务。官方文档和 Saleor 官网提供更完整的产品与配置说明。
局限和适用边界
该项目要求 Node.js v24、运行中的 Saleor 实例和 PNPM(建议经 corepack 安装),运行 E2E 测试套件还需 Docker(它会自行启动 Saleor)。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
首次发现 — · 最近在榜 2026-11-23 · 语言 TypeScript · 贡献者 —
typescript

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 4,529 字节。

<img width="1920" height="1080" alt="Saleor Dashboard 25/26" src="https://github.com/user-attachments/assets/c9705611-2729-4e65-ae35-22081f03c569" />

<div align="center">
  <h1>Saleor Dashboard</h1>
</div>

<div align="center">
  <p>A GraphQL-powered, single-page dashboard application for <a href="https://github.com/saleor/saleor">Saleor</a>.</p>
</div>

<div align="center">
 Get to know Saleor: <br>
  <a href="https://saleor.io/cloud/talk-to-us?utm_source=github&utm_medium=readme&utm_campaign=repo_dashboard">Talk to a human</a>
  <span> | </span>
  <a href="https://cloud.saleor.io/signup?utm_source=github&utm_medium=readme&utm_campaign=repo_dashboard">Talk to the API</a>
</div>

<br>

<div align="center">
  <a href="https://saleor.io/">🏠 Website</a>
  <span> • </span>
  <a href="https://docs.saleor.io/">📚 Docs</a>
  <span> • </span>
  <a href="https://saleor.io/blog/">📰 Blog</a>
  <span> • </span>
  <a href="https://twitter.com/getsaleor">🐦 Twitter</a>
  <span> • </span>
  <a href="https://saleor.io/discord">💬 Discord</a>
</div>

<div align="center">
   <span> • </span>
  <a href="https://githubbox.com/saleor/saleor-dashboard">🔎 Explore Code</a>
</div>

## Prerequisites

- Node.js v24
- A running instance of [Saleor](https://github.com/saleor/saleor/)
- PNPM package manager - preferably installed via [corepack](https://pnpm.io/installation#using-corepack)
- Docker, to run the E2E suite (it starts its own Saleor)

## Development

1. Clone the repository:

```bash
git clone https://github.com/saleor/saleor-dashboard.git
```

2. Enter the project directory:

```bash
cd saleor-dashboard
```

3. Install the dependencies:

```bash
pnpm install
```

4. Configure the env vars as described in [docs/configuration.md](docs/configuration.md).

5. Start the development server with:

```bash
pnpm run dev
```

> Note:
> If you see CORS errors, check [CORS configuration](https://docs.saleor.io/setup/configuration#allowed_client_hosts) of your Saleor instance or CORS settings in the Cloud Console.

## Named URLs with portless (optional)

[portless](https://portless.sh) serves the dev server on a stable `https://dashboard.localhost` instead of `http://localhost:9000`. Useful when you run several checkouts or worktrees at once — each one gets its own URL instead of fighting over port 9000.

The repo is already configured (`portless.json`), but portless itself is not a dependency — install it globally:

```bash
npm install -g portless
```

Then, instead of `pnpm run dev`:

```bash
portless
```

The first run asks for your password once, to bind port 443 and trust a local CA. It runs the `dev` script and prints the URL. In a git worktree the branch name is prepended, e.g. `https://my-branch.dashboard.localhost`.

`pnpm run dev` keeps working as before — portless is opt-in.

## Testing

Unit and component tests need nothing running:

```bash
pnpm test                         # everything
pnpm run test:quiet <file_path>   # one file
```

The E2E suite brings up its own Saleor in Docker, seeds it, builds the dashboard from your
working tree and drives it in a browser — no Saleor Cloud, no credentials, nothing to
configure:

```bash
pnpm e2e         # against the latest stable Saleor (3.23)
pnpm e2e:main    # against Saleor's unreleased main branch
pnpm e2e:all     # both
pnpm e2e --ui    # ...and anything else Playwright understands
pnpm e2e:fresh   # start over from an empty database
pnpm e2e:down    # stop the stacks when you are done
```

The dashboard supports both Saleor generations at once, and which one a build speaks to is
decided at build time, so each target is a separate Saleor _and_ a separate bundle. The
first run pulls an image, migrates and seeds — a few minutes; afterwards a run reaches the
first test in seconds. The database is restored before every test, so a failing test
reproduces on its own.

See [e2e/README.md](e2e/README.md) for the seeds, the actors and how to port a spec.

> Note:
> `e2e-legacy/` is the previous suite, which runs against a provisioned Saleor Cloud
> instance (`pnpm run e2e:legacy`). It is frozen — new tests belong in `e2e/`.

## Docs

- [Configuration ⚙️](docs/configuration.md)
- [Error tracking ⚠️](docs/error-tracking.md)
- [Running tests 🏁](docs/running-tests.md)
- [Usage with Docker 🐳](docs/docker.md)
- [Sentry adapter 🗼](docs/sentry-adapter.md)
- [Deployment 🌐](docs/deployment.md)
- [Developing with stable and staging Saleor graphql.schema](docs/multi-schema.md)
↑