Skip to content

LY1806620741/lorca-umi-demo

Repository files navigation

lorca + umi base demo project

中文说明/Chinese Documentation

version

os: win10
Umi v4.0.81
node v20.6.1
go1.21.1
chrome 117.**

nodejs always has unexpected version problem. please note.

Getting Started

Install dependencies,

$ npm install pnpm
$ pnpm install

Start the dev server, bind 8000 port.

$ pnpm dev

Start the go dev server, use shell, show localhost:8000

go run .

or vscode Shortcut key F5 when open any go file

By hand create this project

# create umi link to https://umijs.org/docs/getting-started
pnpm dlx create-umi@latest

# go init
go mod init jieshao.loract-umi-demo
go get github.com/zserge/lorca

# config go lorca ... link to
# https://github.com/zserge/lorca/tree/master/examples
# https://github.com/cnbattle/lorca-vue-demo
# https://github.com/erkkah/lorca-ts-react-starter


go mod vendor

build

# build resource
pnpm build
# build binary program
pnpm go:build

release

go install github.com/goreleaser/goreleaser/v2@latest
goreleaser release --clean --snapshot