gomematic-ui

module
v0.0.0-...-2100fd4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2019 License: Apache-2.0

README

Gomematic: Web UI

Build Status Codacy Badge Go Doc Go Report

This project is under heavy development, it's not in a working state yet!

Within this repository we are building the web interface for our Gomematic API server, for further information take a look at our documentation.

Install

You can download prebuilt binaries from the GitHub releases or from our download site. You are a Mac user? Just take a look at our homebrew formula.

If you want to serve the UI by a regular webserver you can also find a tarball on our downloads server to just get the assets.

Build

This project requires NodeJS and Yarn to build the sources, the installation of NodeJS or Yarn won't be covered by these instructions, please follow the official documentation for NodeJS and Yarn. To build the sources just execute the following command after the setup:

yarn install
yarn build

If you also want to publish it as a single binary with our server written in Go make sure you have a working Go environment, for further reference or a guide take a look at the install instructions. This project requires Go >= v1.11.

git clone https://github.com/gomematic/gomematic-ui.git
cd gomematic-ui

make generate build

./bin/gomematic-ui -h

With the make generate command we are embedding all the static assets into the binary so there is no need for any webserver or anything else beside launching this binary.

Development

To start developing on this UI you have to execute only a few commands. To setup a NodeJS environment or even a Go environment is out of the scope of this document. To start development just execute those commands:

yarn install
yarn watch

make generate build
./bin/gomematic-ui --log-level debug server --static dist/static/

The development server reloads the used assets on every request. To properly work with it you need to start the API server separately since this project doesn't include it. After launching this command on a terminal you can access the web interface at http://localhost:8080.

Security

If you find a security issue please contact thomas@webhippie.de first.

Contributing

Fork -> Patch -> Push -> Pull Request

Authors

License

Apache-2.0

Copyright (c) 2018 Thomas Boerger <thomas@webhippie.de>

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL