From b8591562386577f3f639376adaf6db760c5e2ad5 Mon Sep 17 00:00:00 2001 From: luohoufu Date: Wed, 4 Dec 2024 15:53:38 +0800 Subject: [PATCH] chore: update README.md with Quickstark --- README.md | 13 +++++++++++++ web/README.md | 24 +++++++++++------------- 2 files changed, 24 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 24a0ccbb..c0dd19d8 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,19 @@ INFINI Console is written in Golang, the installation package is very small, onl To learn more about Console, please visit: https://docs.infinilabs.com/console/ +## Quickstart + +- Build [web](web/README.md) first. + +```sh +# init code base path +mkdir -p $HOME/go/src/infini.sh && cd $_ +# build console +make build +cd bin && mkdir -p config && cp -rf ../config/{setup,*.tpl,*.json} . +# run console +./console +``` ## Community diff --git a/web/README.md b/web/README.md index 83387114..8ce79f71 100644 --- a/web/README.md +++ b/web/README.md @@ -1,21 +1,19 @@ -## 运行环境 +## Running Env ``` -nvm install 16.17 -cnpm install npm@6.14.13 +nvm install 16.20.2 +npm install cnpm@9.2.0 ``` -## 公共组件 +## Running ```shell -cd src -git clone https://git.infini.ltd:64443/infini/common-ui.git common -``` - -## 运行 - -```shell -npm install -npm run build +cnpm install npm run dev ``` + +## Build + +```sh +npm run build +``` \ No newline at end of file