# for macOS
brew install go-task/tap/go-task
# for Snap users
sudo snap install task --classic
# Or please visit the here; https://taskfile.dev/#/installation?id=package-managers
- Pull workspace git repository
git clone https://github.com/workhard-finance/workspace
- Pull submodules
task pull
- Install dependencies
task install
task test
For more details about UI testing
a) You can simply start dev server by running
task develop
b) Or if you want to see the log output separately, prepare 3 terminal windows(or tabs) and then
- Run localhost node
# terminal 1 task localhost:node
- Deploy contracts to the local hardhat node
# terminal 2 task localhost:deploy
- Run frontend
# terminal 3 task frontend -- start
- Please install vscode here.
- Open vscode and select "File > Open Workspace...".
- Then open "workhard.code-workspace" config file.
- Enjoy dev :)
Workhard is using git submodule system
-
Contracts
- Go to 'protocol' directory and make changes.
- In 'protocol' directory, commit your changes.
- Push your commits to your forked protocol repository.
- Make PR to https://github.com/workhard-finance/protocol
-
Frontend app
- Go to 'frontend-v1' directory and make changes.
- In 'frontend-v1' directory, commit your changes.
- Push your commits to your forked fronend repository.
- Make PR to https://github.com/workhard-finance/fronend-v1
-
Apply changes to workspace
- Now you'll have uncommitted changes in the root workspace directory.
- Commit the updated commit hashes of the submodules.
- Push the updated workspace to your own forked workspace repository.
- Make PR to https://github.com/workhard-finance/workspace