|
2 years ago | |
---|---|---|
public | 2 years ago | |
src | 2 years ago | |
tests/unit | 2 years ago | |
.gitignore | 2 years ago | |
README.md | 2 years ago | |
babel.config.js | 2 years ago | |
package.json | 2 years ago | |
tides.json | 2 years ago | |
vue.config.js | 2 years ago | |
yarn.lock | 2 years ago |
yarn install
yarn serve
yarn build
yarn test:unit
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
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.
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