-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from SpectoLabs/develop
Develop
- Loading branch information
Showing
9 changed files
with
67 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,5 @@ links.p | |
|
||
.vagrant/ | ||
|
||
static/js/node_modules | ||
static/node_modules | ||
static/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Hoverfly admin UI | ||
|
||
These files serve admin interface. Since Hoverfly is API first - admin interface is supposed to be minimalistic since | ||
all of the actions such as mode change, record wiping, import/export actions should be automated and done through the API. | ||
|
||
## Building admin interface | ||
|
||
Admin interface is created using ReactJS. To build it - use webpack. | ||
|
||
webpack | ||
|
||
During development, useful command to build upon any change: | ||
|
||
webpack --watch | ||
|
||
To build minimized version for production, add "-p" flag: | ||
|
||
webpack -p | ||
|
||
Hoverfly uses [statik](https://github.com/rakyll/statik) to embed whole UI into the binary: | ||
|
||
go get github.com/rakyll/statik | ||
$GOPATH/bin/statik -src=./static/dist | ||
|
||
|
||
Then _/statik/statik.go_ should then be updated. Rebuild Hoverfly so it is then included into binary. | ||
Commit it in order to see changes. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.