背景

操作步骤

1. 下载源码 (使用Github Desktop 并使用VSCode打开)

2. 基础构建

  1. # build nhctl
  2. $ make nhctl
  3. # buid api server
  4. $ make api
  5. # build nocalhost-dep
  6. make dep
  7. # api docs (go get -u github.com/swaggo/swag/cmd/swag)
  8. swag init -g /cmd/nocalhost-api/nocalhost-api.go

参考链接

https://github.com/nocalhost/nocalhost
https://blog.csdn.net/bigsea622/article/details/103703588 (执行make dep抱错)