To build Palladio locally, first make sure you have yarn installed, then use yarn to install the dependencies and build the assets:
构建 Palladio 应用,首先确保已安装 yarn,然后使用 yarn 安装依赖项并构建资源:
git clone https://github.com/humanitiesplusdesign/palladio-app.git
cd palladio-app
yarn install
yarn build
If you are using Node.js version 18 or higher, you might encounter OpenSSL-related errors during the build process. In that case, use the following command instead:
如果使用 Node.js 18 或更高版本,构建过程中可能会遇到 OpenSSL 相关错误。在这种情况下,请使用以下命令:
export NODE_OPTIONS=--openssl-legacy-provider && yarn build
Then simply run a local web server from this directory -- if you have python installed, you can just use:
然后只需在此目录中运行本地 Web 服务器 -- 如果已安装 python,可以使用:
python3 -m http.server
or on systems with python 2.x:
或在使用 python 2.x 的系统上:
python -m SimpleHTTPServer
To run on the latest version of main Palladio framework for testing purposes:
要使用最新版的 Palladio 框架进行测试:
-
First clone the palladio framework repo, and from inside it run
yarn link:首先克隆 palladio 框架仓库,并在其中运行
yarn link:git clone https://github.com/humanitiesplusdesign/palladio.git cd palladio yarn link -
Then from within your clone of this (
palladio-app) repo, runyarn link palladio.然后在克隆的
palladio-app仓库中运行yarn link palladio。