Skip to content
This repository has been archived by the owner on Jan 22, 2021. It is now read-only.

edgexfoundry-holding/edgex-ui-go

Repository files navigation

Please move to https://github.com/edgexfoundry/edgex-ui-go , this repository is no longer supported for maintenance

edgex-ui-go

Go Report Card license

Go implementation of EdgeX Web UI.

Effect picture after refactoring frontend ui (to be done):

Running in docker

docker pull badboyqiao/edgex-ui-go:0.1

docker run -it -d -p 4000:4000 --name edgex-ui-go badboyqiao/edgex-ui-go:0.1

Install and Deploy

To fetch the code and compile the web-based UI:

Using go get:

go get github.com/edgexfoundry-holding/edgex-ui-go
cd $GOPATH/src/github.com/edgexfoundry-holding/edgex-ui-go
glide install
make build

Using Git:

cd $GOPATH/src
git clone http://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

To rebuild after making changes to source:

make clean
make build

To test the web-based UI:

make test

Before starting the web-based UI for the first time, you'll need to initialize the Mongo database and ensure that the settings are pointing to your MongoDB instance. Without Mongo, the project defaults to using an in-memory database.

To initialize Mongo from the root of the project directory:

mongo deployments/initmongo.js

Mongo settings can be found under web/app/repository/mongo/mongo.go.

To start the application and the web-based UI:

make run

Using the application

Logging in

With a modern browser, navigate to http://localhost:4000. The default user credentials are:

Username     : admin
Password : admin

Displaying EdgeX Go Microservices Data on the UI

prepare : make sure you have installed Docker and its stable version.

Starting EdgeX with Docker

To start all the EdgeX Go microservices in Docker, run the following command in the root of the EdgeX Go directory:

make run_docker

For more information and detailed instructions on using EdgeX, please reference the main EdgeX documentation.

Community

License

Apache-2.0