This section guides you through the steps required to set up a development container using Docker
and VSCode
for developing CATcher's user guide site.
Install the following programs:
- Open the folder in VSCode. The Dev Containers extension should be recommended.
- Click Reopen in Container
- After container build, press any key to access shell.
- You may start the application with
markbind serve
If you encounter
Error: Cannot find module '/home/vscode/.vscode-server/data/User/workspaceStorage/a58265afe7bacfc76c46ea6bab19d711/ms-vscode.js-debug/bootloader.js'
- Open
"debug.javascript.autoAttachFilter": "disabled"
in User Settings- Toggle settings to anything valid, pausing a few moment between each change.
- Try again
Dev Containers seem to still be rather stateful. Fix taken from here. Good news is the error does not show up unless you rebuild the container.
Follow official documentation here
This section guides you through the steps required to set up a local development environment for developing CATcher's user guide site.
You need Node 14 to develop this project.
Run node -v
in your OS terminal to check the version of Node on your computer.
If you do not have Node 14 installed in your computer, click on this link to download Node 14.
-
Fork this repository into your Github account.
-
Clone the forked repository into your computer.
-
Install MarkBind with npm: Run
npm install -g markbind-cli
. -
Compile and start the application: Run
markbind serve
.- Note: If this step fails, it may be possible that the port that
MarkBind
is attempting to serve the site in is being used. This may be rectified with the following command:markbind serve -p <available_port>
.
- Note: If this step fails, it may be possible that the port that