Skip to content

Commit

Permalink
added axios
Browse files Browse the repository at this point in the history
  • Loading branch information
cjimti committed Jun 1, 2018
1 parent 20282cc commit b0b2128
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,10 @@ Example of serving [kdash docker container] on port 2701 on the local server:
docker run -e DEBUG=true -p 2701:80 txn2/kdash:latest
```

## Local Development

```bash
docker run -e DEBUG=true -v "$(pwd)"/www:/www -p 2701:80 txn2/kdash:latest
```

[kdash docker container]: https://hub.docker.com/r/txn2/kdash/
9 changes: 9 additions & 0 deletions www/axios.min.js

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

8 changes: 7 additions & 1 deletion www/index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
<html>
<head>
<title>Dashboard 1.0</title>
<link rel="stylesheet" type="text/css" href="/main.css">
</head>
<body>
Dashboard 0.0.4
<div class="metric">
?
</div>

<script src="/axios.min.js"></script>
<script src="/main.js"></script>
</body>
</html>
14 changes: 14 additions & 0 deletions www/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
body {
font-family: sans-serif;
color: white;
background-color: black;
}

.metric {
font-size: 30vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}

Empty file added www/main.js
Empty file.

0 comments on commit b0b2128

Please sign in to comment.