A timelink-mhk instalation with dev container.
This is a quick way to run timelink-mhk directly in a github codespace, inside a browser, no extra software needed.
- Go to https://github.com/joaquimrcarvalho/timelink-project
- Fork the project with a name like "myproject-mhk-install"
- In the forked project click on "Code"
- Go to the "codespaces" tab
- Click on "New codespace"
- Wait for the codespace to be created
- Open the terminal and type "mhk start mhk"
- In the ports section of the terminal window click on http://localhost:8080 (or type
mhk version
and ctrl/commd+click on the MHK URL) - Login with username
demo
and passwordtimelink
- Install VS Code
- Install the "Codespaces" extension
- Follow instruction to login in Github
- Select the codespace created before
- In the terminal type "mhk start mhk"
- MHK can be accessed in the browser at http://localhost:8080 (or type
mhk version
and ctrl/commd+click on the MHK URL) - Login with username
demo
and passwordtimelink
The instructions above require internet connection and are subject to the limitations of the codespace environment, namely limit number of hours per month in free github accounts.
To run timelink-mhk in a virtual machine in your computer, with no limitations, follow the instructions below.
- Install VS Code
- Install the "Remote - Containers" extension
- Install Docker
- Install git
- Clone the project
- Open the project in VS Code
- Click on "Reopen in Container"
- Wait for the container to be created
- Open the terminal and type "mhk start mhk"
- Open http://localhost:8080 (or type mhk version and ctrl/commd+click on the MHK URL)
- Login with username
demo
and passwordtimelink
On windows you might get an error related to the line endings. To fix this open a terminal in VS Code with CTRL+J or menu Terminal - New Terminal and type:
git config --global core.autocrlf false
and repeat the steps 5-10.
For a repository with sources to be added like
https://github.com/joaquimrcarvalho/dehergne-locations.git
Add it to mhk-home/sources with:
- Open a terminal with (ctrl + j / cmd + j)
- git subtree add --prefix mhk-home/sources/dehergne-locations https://github.com/joaquimrcarvalho/dehergne-locations.git main --squash
To pull changes from the source repository do:
- git subtree pull --prefix mhk-home/sources/dehergne-locations https://github.com/joaquimrcarvalho/dehergne-locations.git main --squash
To push local changes to the local repository do
- git subtree push --prefix mhk-home/sources/dehergne-locations https://github.com/joaquimrcarvalho/dehergne-locations.git main --squash