English | 简体中文
- nvm
- Ensure the node version specified in
.nvmrc
is installed, for example "nvm install --lts=Hydrogen" - Run
nvm use
to 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 install
to install dependencies infrontend
directory - Run
cd ./web && yarn install
to install dependencies inweb
directory
- Open
setupBackend.sh
file in root directory and configure the env parameters such as mysql, backend service domain etc.- Check
./web/middlewares/proxy/proxyTable.js
for proxy configuration
- Check
- Run
bash setupBackend.sh
to start the node service - The source code of node service is in
./web
directory
- In './frontend' directory, run
npm run dev
to start the frontend code - The frontend source code is in
./frontend
directory
- 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.sh
to build node and frontend applications