fleet/frontend/templates/react.tmpl
Mike Arpaia 3a9381c5b3 React Base (#61)
* Add sensible React base to the app for frontend

This PR attempts to "reactify" Kolide and provide a sane development environment
that a front-end engineer would probably expect.

This PR accomplishes by doing the following:

1. Reorganizes the app into a `server/` and `client/` folders to keep golang
logic separated from react logic.

2. Adds an "asset pipeline" via webpack which knows how to build a js
and css bundle.

3. Packages up all static assets in a go-bindata file so that the binary
remains portable without external file dependencies.

1. Add a Makefile with several targets that will be common in everyday
development. For example, we have `serve` target which spins up a nodejs
reverse proxy on port 8081 which then watches for changed files, automatically
rebuilds the app, and hot loads the new JS/CSS in.

 **Note:** Please use `make` to build the app, not `go build` as there are
now several things that need to be orchestrated beyond the go code to build the app.

* Create build if it doesn't exist, and use `go get`

* Improve README to reflect new dev workflow

* Document css vars and funcs and use alias paths

* makefile and structure modifications
2016-08-09 22:15:44 -07:00

13 lines
329 B
Cheetah

<!DOCTYPE html>
<html data-uuid="{{ .UUID }}">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/assets/bundle.css">
<title>Kolide</title>
</head>
<body>
<div id="app"></div>
<script async defer src="/assets/bundle.js" onload="this.parentElement.removeChild(this)"></script>
</body>
</html>