Skip to content

Commit

Permalink
update Gopkg && README
Browse files Browse the repository at this point in the history
  • Loading branch information
soyking committed Sep 10, 2017
1 parent b471489 commit d7955fe
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 23 deletions.
23 changes: 11 additions & 12 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@
[[constraint]]
name = "gopkg.in/ini.v1"
version = "1.28.2"

[[override]]
name = "google.golang.org/grpc"
revision = "8050b9cbc271307e5a716a9d782803d09b0d6f2d"
30 changes: 19 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,28 @@ SETTING

## Usage

```
go get github.com/soyking/e3w
1.Fetch the project `go get github.com/soyking/e3w`


2.frontend

# frontend
```
cd static
npm install
npm run publish
```

3.backend

# backend
# start etcd, such as [goreman](https://github.com/coreos/etcd/#running-a-local-etcd-cluster)
# install packages by [dep](https://github.com/golang/dep) if needed
dep ensure
# edit conf/config.default.ini
go build && ./e3w
a. Start etcd, such as [goreman](https://github.com/coreos/etcd/#running-a-local-etcd-cluster)

# for auth
b. Install packages by [dep](https://github.com/golang/dep) if needed, `dep ensure`

c. Edit conf/config.default.ini if needed, `go build && ./e3w`

d. For auth:

```
ETCDCTL_API=3 etcdctl auth enable
# edit conf/config.default.ini[app]#auth
./e3w
Expand All @@ -63,4 +69,6 @@ ETCDCTL_API=3 etcdctl auth enable
[dir1/dir2/, dir1/dir20) (prefix dir1/dir2/)
```

When `userA` was granted `roleA`, `userA` could open the by `http://e3w-address.com/#/kv/dir1/dir2` to view and edit the key/value
When `userA` was granted `roleA`, `userA` could open the by `http://e3w-address.com/#/kv/dir1/dir2` to view and edit the key/value

- Access key/value by etcdctl, [issue](https://github.com/soyking/e3w/issues/3)

0 comments on commit d7955fe

Please sign in to comment.