web

command
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

README

Conduit Dashboard

This is a React app. It uses webpack to bundle assets, and postcss to transform css.

The commands below assume that you're starting from the root of the repo.

First time setup

Install yarn and use it to install dependencies.

brew install yarn
cd web/app
yarn

Development

After pulling master:

If you just want to run the frontend:

cd web/app
yarn
yarn webpack
cd ..
go run main.go

The web server will be running on localhost:8084.

To develop with a webpack dev server, start the server in a separate window:

cd web/app
yarn webpack-dev-server

And then set the -webpack-dev-server flag when running the web server:

go run main.go -webpack-dev-server=http://localhost:8080

Run docker-compose

You can also run all of the go apps in a docker-compose environment.

From the root of the repo, run:

docker-compose build
docker-compose up -d

If you want to develop on the web service locally, stop it first, then run it locally and set the -api-addr flag to the address of the public API server that's running in your docker environment:

docker-compose stop web
cd web
go run main.go -api-addr=localhost:8085

Testing

Golang unit tests

To run:

go test ./...
JS unit tests

To run:

cd web/app
yarn karma start

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
util

Jump to

Keyboard shortcuts

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