在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):saleor/saleor-dashboard开源软件地址(OpenSource Url):https://github.com/saleor/saleor-dashboard开源编程语言(OpenSource Language):TypeScript 92.3%开源软件介绍(OpenSource Introduction):Saleor DashboardA GraphQL-powered, single-page dashboard application for Saleor. DemoSee the public demo of Saleor Dashboard! Or launch the demo on a free Heroku instance. Getting StartedThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. Prerequisites
InstallingClone the repository:
Enter the project directory:
Using stable releaseTo use the official stable release, checkout to a release tag:
See the list of all releases here: https://github.com/saleor/saleor-dashboard/releases/ Using development versionIf you want to use the latest development version, checkout to the
Install NPM dependencies:
ConfigurationThere following environment variables are available for configuration:
DevelopmentTo start the development server run:
ProductionTo build the application bundle run:
Error TrackingSaleor Dashboard is using a generic error tracking wrapper function that takes care of the most popular use cases:
By default it ships with a Sentry adapter but any kind of error tracking software can be used by creating a custom adapter (using Sentry and TS types as an example). Example: // src/services/errorTracking/index.ts
import { CustomAdapter } from "./adapters/";
const errorTracker = ErrorTrackerFactory(CustomAdapter(config)); Usage with Sentry adapter:Sentry is used as the default tracker so no changes in code are necessary and the configuration is done via environment variables. The following environment variables are available:
Crafted with |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论