interface for cobox to interact with cobox-core, built in vueJS
Dan Hassan 849a626fc2 connect to device upon setup to emit hide/command 1 year ago
public Move images into src 1 year ago
src connect to device upon setup to emit hide/command 1 year ago
tests/unit init 2 years ago
.gitignore init 2 years ago
README.md add localhost details for viewing parallel UIs to the readme 1 year ago
babel.config.js init 2 years ago
package.json Add copy to clipboard component 1 year ago
tides.json Remove unused variables 1 year ago
vue.config.js Fix undefined port 1 year ago
yarn.lock Add copy to clipboard component 1 year ago

README.md

cobox-ui

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Run your unit tests

yarn test:unit

Run two UIs ontop of two different servers (mimic two seperate users)

To run two seperate instances alongside eachother so you can get groups/devices replicating locally you can run the following:

# these two commands mimic one user
# from the [cobox-server](https://ledger-git.dyne.org/CoBox/cobox-server/src/branch/development) repo in one terminal run:
yarn dev:server --port 1234 --mount ~/cobox/mount/one --storage ~/cobox/one

# from the [cobox-ui](https://ledger-git.dyne.org/CoBox/cobox-ui/src/branch/develop) repo in another terminal run:
API_PORT=1234 yarn serve

# the first UI which is run will be launched at http://localhost:8080/ (check the logs)

# these next two commands mimic another user
# from the [cobox-server](https://ledger-git.dyne.org/CoBox/cobox-server/src/branch/development) repo in one terminal run:
yarn dev:server --port 2345 --mount ~/cobox/mount/two --storage ~/cobox/two

# from the [cobox-ui](https://ledger-git.dyne.org/CoBox/cobox-ui/src/branch/develop) repo in another terminal run:
API_PORT=2345 yarn serve

# the second UI which is run will be launched at http://localhost:8081/ (check the logs)

Lastly if you want to mimic what it would be like to have a Cobox physical device running on the local are network then you can run. When you have it running you should be able to run through the setup device workflow.

# this command from the [cobox-hub](https://ledger-git.dyne.org/CoBox/cobox-hub/src/branch/development) repo:
yarn dev

Repo Process

We’re following the Gitflow Workflow. Please base off of develop when working on feature/<feature_name> branches. This should be a branch per feature.

Example

A complete example demonstrating a Feature Branch Flow is as follows. Assuming we have a repo setup with a master branch.

git checkout master
git checkout -b develop
git checkout -b feature_branch
# work happens on feature branch
git checkout develop
git merge feature_branch
git checkout master
git merge develop
git branch -d feature_branch