dsp das
v11.22.4
该MonorePo托管了Dasch服务平台的各种应用程序和库。
要安装库,只需运行npm install即可。
有关特定库的更多信息,请转到其读数,例如:
DSP(Dasch Service Platform)是一个软件框架,用于存储,共享和使用人文学科中的主要资源和数据。
DSP-APP是瑞士国家数据和人文服务中心(DASCH)的研究数据存储库的简单用户界面,该数据存储库在后端使用DSP-API服务器应用程序。这是一种在艺术和人文科学中的注释和链接的系统。
DSP应用实现DSP-JS与DSP-API连接。
DSP-App是免费软件,根据GNU Affero通用公共许可发布。
要尝试dsp-app,应首先启动DSP-API后端:
在DSP-API存储库中的终端FO中,并通过运行以下命令来启动API:
$ make init-db-test
$ make stack-without-app后端启动并运行后,在第二个终端实例中,通过运行启动DSP应用程序:
# come back to this repository and start the DSP-APP
$ npx nx run dsp-app:serveMonorePo使用NX实现。
最常见的命令是在package.json中定义的。
注意:您可以使用
npm install -g nxnx在全球安装NX。如果不是,那么下面的所有nx命令都需要以npx为前缀。
| nx | NPM |
|---|---|
nx run dsp-app:test | npm run test-local |
nx run dsp-app:test:ci | npm run test-ci |
nx run-many --all --target=test --configuration=ci | npm run test-ci-all |
nx run dsp-app:serve | npm run start-local |
nx run dsp-app:serve:test-server | npm run start-test |
nx run dsp-app:serve:dev-server | npm run start-dev |
nx run dsp-app:serve:ls-test-server | npm run start-ls-test |
nx run dsp-app:serve:stage-server | npm run start-stage |
nx run dsp-app:serve:0845-test-server | npm run start-0845-test |
nx run dsp-app:lint | npm run lint-ci |
nx run dsp-app:lint --fix | npm run lint-local |
nx run dsp-app-e2e:e2e:development | npm run e2e-ci-dev |
nx run dsp-app-e2e:e2e:production | npm run e2e-ci |
nx run dsp-app:build | build |
nx run dsp-app:build:production | build-prod |
| NPX | NPM |
|---|---|
cd apps/dsp-app-e2e && npx cypress open | npm run e2e-local |
有三个NPM脚本可以运行E2E测试:
npm run e2e-ci-dev将在开发环境中在控制台中运行E2E测试。npm run e2e-ci将在生产环境中在控制台中运行E2E测试。这也是GitHub CI上的命令运行。npm run e2e-local将打开Cypress UI,该UI可以轻松运行单个测试并查看其运行时的每个步骤。 ➡最新发布版本
➡对于开发人员
如果您想与我们一起为DSP应用程序的开发做出贡献,请遵循一般DSP贡献指南。
我们使用MKDOC构建了用户指南和开发人员文档。更多信息可以在特定的读数中找到。