/go-ant-design-pro

ant-design-pro integration with Golang/GO template

Primary LanguageTypeScript

environment

go >= 1.16
nodejs >= v14.2.0
npm >= 6.14.4
yarn >=1.22.0
npx >= 6.14.4

create webui

## speed up js package download for people who is living in mainland China
npm config get registry
npm config set registry https://registry.npm.taobao.org/
## rollback
npm config set registry https://registry.npmjs.org/

yarn config get registry
yarn config set registry https://registry.npm.taobao.org
## rollback
yarn config set registry https://registry.yarnpkg.com

npx create-umi ./webui
'''
chose ant-design-pro
chose Pro V4
chose TypeScript
chose complete
'''

cd webui && yarn install

yarn start

## open http://localhost:8000

## if you want to enable and develop webui under debug mode for convenient, install @umijs/preset-ui and restart webui, there will be a bubble at the bottom right of the page.

yarn add @umijs/preset-ui -D
yarn start

## build for release
yarn build

Issues:

If you have any issues, try :

rm -fr src/.umi
BABEL_CACHE=none yarn start

create and run GO server

## for people who is living in mainland China
go env -w GOPROXY=https://goproxy.cn,direct

go mod init go-ant-design-pro

## run, NOTE: before run go server you should build webui firdt.
go run main.go

## open http://localhost:8080 it will open webui by default