Skip to content
badboy-huaqiao edited this page Sep 10, 2018 · 3 revisions

Welcome to the edgex-ui-go home!

如何开始

  • cd $GOPATH
  • git clone https://github.com/edgexfoundry-holding/edgex-ui-go.git github.com/edgexfoundry-holding/edgex-ui-go
  • cd $GOPATH/src/github.com/edgexfoundry-holding/edgex-ui-go
  • glide install
  • make build

运行

make run

工程结构简介

  • cmd/edgex-ui-go目录下为main.go程序入口
  • configs目录为常量信息
  • initial目录为reverse proxy配置信息和数据库初始化
  • web/app目录下为后端go代码
  • web/app/repository/mongo/mongo.go文件中配置mongoDB数据库的连接信息,如果没有配置,默认使用内存数据库
  • web/static目录为前端js+html+css代码
Clone this wiki locally