如何手动配置 Illustry
在安装 Illustry 前端之前,请确保满足以下先决条件:
- 节点版本 18.17.0 或更高版本
- MongoDB
Illustry 后端
Section titled “Illustry 后端”项目根目录下需要一个名为 .env 的文件,其中包含以下字段:
MONGO_URL=mongodb:/127.0.0.1:27017/illustryMONGO_TEST_URL=mongodb:/127.0.0.1:27017/illustrytestMONGO_USER=<your_personal_mongo_user>MONGO_PASSWORD=<your_personal_mongo_password>ILLUSTRY_PORT=7000运行以下命令:
npm i && npm run build:ts && npm run start:devpnpm install && pnpm run build:ts && pnpm run start:devyarn && yarn build:ts && yarn start:dev运行以下命令:
docker build -t illustrybackend .docker run -p 7000:7000Illustry 前端
Section titled “Illustry 前端”项目根目录下需要一个名为 .env 的文件,其中包含以下字段:
NEXT_PUBLIC_BACKEND_PUBLIC_URL: http:/0.0.0.0:7000运行以下命令:
npm i && npm run build:ts && npm run start:devpnpm install && pnpm run build:ts && pnpm run start:devyarn && yarn build:ts && yarn start:dev运行前,先创建后端镜像!
运行以下命令:
docker build -t illustryfrontend .docker run -p 3000:3000 -e NEXT_PUBLIC_BACKEND_PUBLIC_URL=http:/ilustrybackend:7000 illustryfrontend