English | 简体中文
- nvm
- Ensure the node version specified in
.nvmrcis installed, for example "nvm install --lts=Hydrogen" - Run
nvm useto use the node version specified in.nvmrc, for example "nvm use --lts=Hydrogen" - Or set the node version as default by running
nvm alias default <version>
- Ensure the node version specified in
- yarn
- Install yarn by running
npm install -g yarn
- Install yarn by running
- Run
cd ./frontend && yarn installto install dependencies infrontenddirectory - Run
cd ./web && yarn installto install dependencies inwebdirectory
- Open
setupBackend.shfile in root directory and configure the env parameters such as mysql, backend service domain etc.- Check
./web/middlewares/proxy/proxyTable.jsfor proxy configuration
- Check
- Run
bash setupBackend.shto start the node service - The source code of node service is in
./webdirectory
- In './frontend' directory, run
npm run devto start the frontend code - The frontend source code is in
./frontenddirectory
- In production, in './' directory, run
docker build -t kdp-ux .to build docker image - For local integration testing environment, in './' directory, run
bash build_dev.shto build node and frontend applications